You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Vinicius Carvalho <ja...@gmail.com> on 2006/07/17 21:09:38 UTC

html:select disable problem

Hello there! I believe this is an HTML/HTTP issue, but...

I have a userForm that some of the fields (selects) when the user is
editing must come as readonly (disabled). Well, that's almost ok,
because I need that data on the action called by the form, and those
values are not passed to the action.
I tried to use hidden values together with the html:select, but it
seems that struts is too smart and its not setting the values, keeping
the null ones :(

Any solutions for this dumb problem?

Regards

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Re: html:select disable problem

Posted by Vinicius Carvalho <ja...@gmail.com>.
Thanks all, we solved this using hidden fields :)

Thanks

On 7/18/06, Laurie Harper <la...@holoweb.net> wrote:
> Vinicius Carvalho wrote:
> > Hello there! I believe this is an HTML/HTTP issue, but...
> >
> > I have a userForm that some of the fields (selects) when the user is
> > editing must come as readonly (disabled). Well, that's almost ok,
> > because I need that data on the action called by the form, and those
> > values are not passed to the action.
>
> Right, disabled form controls are not submitted, per the HTML spec.
>
> > I tried to use hidden values together with the html:select, but it
> > seems that struts is too smart and its not setting the values, keeping
> > the null ones :(
>
> Without seeing what you're doing, it's hard to diagnose what's going
> wrong. What does your JSP markup look like? What does the resulting
> (rendered) HTML look like? How are you trying to retrieve the values in
> your action code?
>
> L.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Re: html:select disable problem

Posted by Laurie Harper <la...@holoweb.net>.
Vinicius Carvalho wrote:
> Hello there! I believe this is an HTML/HTTP issue, but...
> 
> I have a userForm that some of the fields (selects) when the user is
> editing must come as readonly (disabled). Well, that's almost ok,
> because I need that data on the action called by the form, and those
> values are not passed to the action.

Right, disabled form controls are not submitted, per the HTML spec.

> I tried to use hidden values together with the html:select, but it
> seems that struts is too smart and its not setting the values, keeping
> the null ones :(

Without seeing what you're doing, it's hard to diagnose what's going 
wrong. What does your JSP markup look like? What does the resulting 
(rendered) HTML look like? How are you trying to retrieve the values in 
your action code?

L.


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Re: How to put an image in a Posted by Michael Jouravlev <jm...@gmail.com>.
On 7/18/06, A. Lotfi <ma...@yahoo.com> wrote:
> How to put an image in a <html:submit .. > button
>   thank you

In 2006 you should use a regular submit button and render it whatever
you like using CSS.

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


How to put an image in a Posted by "A. Lotfi" <ma...@yahoo.com>.
How to put an image in a <html:submit .. > button
  thank you

 		
---------------------------------
Do you Yahoo!?
 Everyone is raving about the  all-new Yahoo! Mail Beta.

Re: displaytag , how display from a vector of beans ?

Posted by vijay venkataraman <vi...@ltp.soft.net>.
If you are still having problems - Download the example source code or 
war file from
http://displaytag.sourceforge.net/m2repo/displaytag/displaytag-examples/1.1/. 
This should give you a clear idea.

Thanks,
Vijay Venkataraman

Michael Jouravlev wrote:

> http://displaytag.sourceforge.net/11/tut_basic.html
>
> On 7/18/06, A. Lotfi <ma...@yahoo.com> wrote:
>
>> In the Acion I fill a vector with dynaForm(s)
>>
>>   for(.....) {
>>    vecInboxMessages.addElement(dynaForm);
>>              ....
>>   }
>>         session.setAttribute("inboxList" , vecInboxMessages);
>>         saveToken(request);
>>         getSubheaderDetails();
>>         return mapping.findForward(forward);
>>
>>   Please show me how to use displaytag in the jsp file, thank you 
>> your help is appreciated.
>>
>>
>> George Papandreou <ge...@alcatel.com> wrote:
>>   Can you show your syntax?
>>
>> Here is an example:
>>
>> class="dataTable" >
>> headerClass="hidden" media="html" />
>>
>>
>>
>>
>>
>>
>> Where wsUsers is a form bean method that takes a Vector.
>>
>> Cheers,
>> /g
>>
>> -----Original Message-----
>> From: A. Lotfi [mailto:majidnakit@yahoo.com]
>> Sent: Monday, July 17, 2006 4:52 PM
>> To: Struts Users Mailing List
>> Subject: displaytag , how display from a vector of beans ?
>>
>>
>> Hi,
>> I put in a seesion in the action a vector of beans, in the jsp file 
>> when I
>> use the displaytag to display the content of the beans, I always get 
>> this
>> message : Nothing found to display.
>>
>> could you please help,
>> thank you
>>
>>
>> ---------------------------------
>> Talk is cheap. Use Yahoo! Messenger to make PC-to-Phone calls. Great 
>> rates
>> starting at 1¢/min.
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
>> For additional commands, e-mail: user-help@struts.apache.org
>>
>>
>>
>>
>> ---------------------------------
>> Groups are talking. We're listening. Check out the handy changes to 
>> Yahoo! Groups.
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>


------------------------------DISCLAIMER------------------------------
This message is for the named person's use only. It may contain 
confidential, proprietary or legally privileged information. No
confidentiality or privilege is waived or lost by any mistransmission. 

If you receive this message in error, please immediately delete it and 
all copies of it from your system, destroy any hard copies of it and 
notify the sender. You must not, directly or indirectly, use, disclose, 
distribute, print, or copy any part of this message if you are not the 
intended recipient. 

Lisle Technology Partners Pvt. Ltd. and any of its subsidiaries each 
reserve the right to monitor all e-mail communications through its 
networks. 

Any views expressed in this message are those of the 
individual sender, except where the message states otherwise and the 
sender is authorized to state them to be the views of any such entity.

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Re: displaytag , how display from a vector of beans ?

Posted by Michael Jouravlev <jm...@gmail.com>.
http://displaytag.sourceforge.net/11/tut_basic.html

On 7/18/06, A. Lotfi <ma...@yahoo.com> wrote:
> In the Acion I fill a vector with dynaForm(s)
>
>   for(.....) {
>    vecInboxMessages.addElement(dynaForm);
>              ....
>   }
>         session.setAttribute("inboxList" , vecInboxMessages);
>         saveToken(request);
>         getSubheaderDetails();
>         return mapping.findForward(forward);
>
>   Please show me how to use displaytag in the jsp file, thank you your help is appreciated.
>
>
> George Papandreou <ge...@alcatel.com> wrote:
>   Can you show your syntax?
>
> Here is an example:
>
> class="dataTable" >
> headerClass="hidden" media="html" />
>
>
>
>
>
>
> Where wsUsers is a form bean method that takes a Vector.
>
> Cheers,
> /g
>
> -----Original Message-----
> From: A. Lotfi [mailto:majidnakit@yahoo.com]
> Sent: Monday, July 17, 2006 4:52 PM
> To: Struts Users Mailing List
> Subject: displaytag , how display from a vector of beans ?
>
>
> Hi,
> I put in a seesion in the action a vector of beans, in the jsp file when I
> use the displaytag to display the content of the beans, I always get this
> message : Nothing found to display.
>
> could you please help,
> thank you
>
>
> ---------------------------------
> Talk is cheap. Use Yahoo! Messenger to make PC-to-Phone calls. Great rates
> starting at 1¢/min.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>
>
>
> ---------------------------------
> Groups are talking. We're listening. Check out the handy changes to Yahoo! Groups.
>

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


RE: displaytag , how display from a vector of beans ?

Posted by "A. Lotfi" <ma...@yahoo.com>.
In the Acion I fill a vector with dynaForm(s)
   
  for(.....) {
   vecInboxMessages.addElement(dynaForm);
             ....
  }     
        session.setAttribute("inboxList" , vecInboxMessages);
        saveToken(request);
        getSubheaderDetails();
        return mapping.findForward(forward);
   
  Please show me how to use displaytag in the jsp file, thank you your help is appreciated.
  

George Papandreou <ge...@alcatel.com> wrote:
  Can you show your syntax?

Here is an example:

class="dataTable" >
headerClass="hidden" media="html" />






Where wsUsers is a form bean method that takes a Vector.

Cheers,
/g 

-----Original Message-----
From: A. Lotfi [mailto:majidnakit@yahoo.com] 
Sent: Monday, July 17, 2006 4:52 PM
To: Struts Users Mailing List
Subject: displaytag , how display from a vector of beans ?


Hi,
I put in a seesion in the action a vector of beans, in the jsp file when I
use the displaytag to display the content of the beans, I always get this
message : Nothing found to display.

could you please help,
thank you


---------------------------------
Talk is cheap. Use Yahoo! Messenger to make PC-to-Phone calls. Great rates
starting at 1¢/min.


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org



 		
---------------------------------
Groups are talking. We’re listening. Check out the handy changes to Yahoo! Groups. 

RE: displaytag , how display from a vector of beans ?

Posted by George Papandreou <ge...@alcatel.com>.
Can you show your syntax?

Here is an example:
<%@ taglib uri="http://displaytag.sf.net" prefix="display" %>
<display:table name="requestScope.WebServiceForm.wsUsers" id="wsUsers"
class="dataTable" >
 <display:column property="id" title="ID" class="hidden"
headerClass="hidden" media="html" />
  <display:column property="firstName"/>
  <display:column property="lastName"/>
  <display:column property="organization"/>
  <display:caption></display:caption>
</display:table>

Where wsUsers is a form bean method that takes a Vector.

Cheers,
/g 

-----Original Message-----
From: A. Lotfi [mailto:majidnakit@yahoo.com] 
Sent: Monday, July 17, 2006 4:52 PM
To: Struts Users Mailing List
Subject: displaytag , how display from a vector of beans ?

 
  Hi,
  I put in a seesion in the action a vector of beans, in the jsp file when I
use the displaytag to display  the content of the beans, I always get this
message : Nothing found to display.
   
  could you please help,
  thank you

 		
---------------------------------
Talk is cheap. Use Yahoo! Messenger to make PC-to-Phone calls.  Great rates
starting at 1¢/min.


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


displaytag , how display from a vector of beans ?

Posted by "A. Lotfi" <ma...@yahoo.com>.
 
  Hi,
  I put in a seesion in the action a vector of beans, in the jsp file when I use the displaytag to display  the content of the beans, I always get this message : Nothing found to display.
   
  could you please help,
  thank you

 		
---------------------------------
Talk is cheap. Use Yahoo! Messenger to make PC-to-Phone calls.  Great rates starting at 1¢/min.