Win a copy of Java Concurrency Live Lessons this week in the Threads forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

readonly inputtext could get bean property, while non-readonly(readonly=false) one could not. why?  RSS feed

 
ym feng
Ranch Hand
Posts: 31
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
one managed bean, 2 properties myBean(prop1, prop2)
2 <af:inputText>s (i use oracle adf faces)
<af:inputText value#{myBean.prop1} readonly="true">
<af:inputText value#{myBean.prop2}>

two inputText are placed on popup window(<af:popup>)

everything is ok when popup window startup at first time,
while the second inputtext could not get the value of myBean.prop2, at the second time startup

nothing changed during this whole process, but just got this strang result.

could anyone help me ?
any suggestion is welcome.

thanks!

 
Bauke Scholtz
Ranch Hand
Posts: 2458
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The posted code doesn't even compile. I am not sure if it is actually a fault or that you typed/pasted quick'n'dirty code here (you should NEVER do that, post the ACTUAL code).
 
ym feng
Ranch Hand
Posts: 31
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Bauke Scholtz wrote:The posted code doesn't even compile. I am not sure if it is actually a fault or that you typed/pasted quick'n'dirty code here (you should NEVER do that, post the ACTUAL code).



here is the code


myBean.fetchListener()



please help to look into it, thanks!
>
 
ym feng
Ranch Hand
Posts: 31
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
if myBean is set to be session scoped, everything will be ok.
 
Bauke Scholtz
Ranch Hand
Posts: 2458
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Start removing this line or replacing the HTML comments by JSP comments <%-- --%>.

The HTML comments are pure client side and doesn't stop this line being parsed by the JSP engine.
 
ym feng
Ranch Hand
Posts: 31
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Bauke Scholtz wrote:
Start removing this line or replacing the HTML comments by JSP comments &lt;%-- --%&gt;.

The HTML comments are pure client side and doesn't stop this line being parsed by the JSP engine.


I do follow your suggestion, but problem remains,
it's not the point of my question, maybe. thank you all the same.
 
Bauke Scholtz
Ranch Hand
Posts: 2458
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Uh, it was just to exclude problems step by step. I also explicitly said "Start", I just wanted to help you step by step.

Anyway, my motivation to help has gone. Good luck further.
 
ym feng
Ranch Hand
Posts: 31
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Bauke Scholtz wrote:Uh, it was just to exclude problems step by step. I also explicitly said &amp;quot;Start&amp;quot;, I just wanted to help you step by step.

Anyway, my motivation to help has gone. Good luck further.


yes, i preciate for your help.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!