netui:select optionsDataSource cannot be set

View: New views
2 Messages — Rating Filter:   Alert me  

netui:select optionsDataSource cannot be set

by John L :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hello Beehive - User Forum!
I'm new to Beehive and I'm having a problem that I hope someone here can help me out with.  I'm sure it has a simple solution, but what that solution is, I don't know.

I'm trying to upgrade from Weblogic portal 8.1 to 10.3 and I'm using Oracle's Workshop for WebLogic 10.3 (it's eclipse 3.3)

I've got the following line in a jsp

<netui:select dataSource="pageFlow.selectedEditAcvListSequenceNumber" optionsDataSource="pageFlow.acvListMap" nullable="true"/>

it produces this html

<input type="hidden" name="wlw-select_key:{pageFlow.selectedEditAcvListSequenceNumber}OldValue" value="true">
<select name="wlw-select_key:{pageFlow.selectedEditAcvListSequenceNumber}">
<option value="pageFlow.acvListMap">pageFlow.acvListMap</option>
<option value="netui_null" selected></option>
</select>

So it takes the value of optionsDataSource and makes it an option.  I checked the documentation here:
http://beehive.apache.org/docs/1.0/apidocs/taglib/beehive.apache.org/netui/tags-html-1.0/select.html
(I also looked at the 1.0.2 javadoc, it seemed the same)

and so I changed the line to:
<netui:select dataSource="pageFlow.selectedEditAcvListSequenceNumber" optionsDataSource="${pageFlow.acvListMap}" nullable="true"/>

this failed with this error to the browser:

Static attribute must be a String literal, its illegal to specify an expression.
                    <netui:select dataSource="pageFlow.selectedEditAcvListSequenceNumber" optionsDataSource="${pageFlow.acvListMap}" nullable="true"/>


and a similar error in the console.

I've tried to change the JSTL facet, but eclipse won't let me, I've tried to explicitly set the jsp to interpret EL.  I've tried a lot of things that I can't recall.

Does anyone have any ideas?

Re: netui:select optionsDataSource cannot be set

by John L :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

This has been cleared up, but the solution is unsatisfying.

I pulled (nearly) everything from the page and put in this line:

<netui:select dataSource="pageFlow.selectedEditAcvListSequenceNumber" optionsDataSource="${pageFlow.acvListMap}" nullable="true" />

it ran.
I added everything in the page line by line, I ran and re-ran it, waiting for it to start failing. When it was exactly the same as when I started (confirmed with a diff) it still ran.

I have to assume that it was some kind of eclipse/weblogic clean-build-deploy problem.

Hope this saves some trouble for somebody else someday