You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Volker Karlmeier <vo...@magiccode.eu> on 2008/06/03 23:48:04 UTC

Images in s:select

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
 
Hello all,


is it possible to design a list with an s:select-tag that conaints
images ?
I want to offer a list of available langauges with a flag, but how can
I realize it ?
any suggestions ?

 Volker

Stetze2008 schrieb:
> hi,
>
> when opening http://localhost:8080/myApplication/ on my local Jetty
> server instead of showing the action defined in the welcomefilelist
> of my web.xml I'm asked to download a file from type
> application/octet-stream.
> it works on the tomcat internet server. does anybody know how to
> solve this locally?
>
> thanks in advance,
> Stefan
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.3 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
 
iD8DBQFIRbwUx4KjH6Tk4MMRAuNcAJ9EmrGuUWQp/GPGmZ/s446wk1vBPgCdHDgn
cALnW+RM5LoUaK079Ashq1k=
=VJb6
-----END PGP SIGNATURE-----


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


Re: s:select - execute action onChange

Posted by Felipe Lorenz <fe...@gmail.com>.
Hi. What action? A action to update another select, i.e.?

I use something like this:

onChange="jsFunction(this.value);"

function jsFunction( id ) {
  var div = dojo.widget.byId("<my div>");
  div.href = "myAction?myField="+id;
  div.refresh();
}

That is it?

On Wed, Jun 4, 2008 at 4:12 PM, Stetze2008 <st...@gmx.de> wrote:

> hi I'm sorry but I did not find a quick solution for my problem on the web.
>
> I want to execute an action if another value of the select-box was
> selected.
> So i guess I have to use the onChange attribute but I dont know how.
>
> this is my actual form:
>
>   <s:form action="changeDefaultScope" namespace="/user" method="POST"
> theme="simple">
>               <s:select list="myList" key="label.allscopes"
>                   listKey="id" listValue="name" value="myValue"
> emptyOption="false" name="scopeId" theme="simple" />
>               <s:submit  key="button.changeScope" theme="simple" />
>   </s:form>
>
> I would like to call the action without the submit button. (Javasscript -
> onChange)
>
> Can anybody help? Thanks in advance.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>

s:select - execute action onChange

Posted by Stetze2008 <st...@gmx.de>.
hi I'm sorry but I did not find a quick solution for my problem on the web.

I want to execute an action if another value of the select-box was selected.
So i guess I have to use the onChange attribute but I dont know how.

this is my actual form:

    <s:form action="changeDefaultScope" namespace="/user" method="POST" 
theme="simple">
                <s:select list="myList" key="label.allscopes"
                    listKey="id" listValue="name" value="myValue" 
emptyOption="false" name="scopeId" theme="simple" />
                <s:submit  key="button.changeScope" theme="simple" />
    </s:form>

I would like to call the action without the submit button. (Javasscript 
- onChange)

Can anybody help? Thanks in advance.

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


Re: Images in s:select

Posted by Felipe Lorenz <fe...@gmail.com>.
try something with CSS...

On Tue, Jun 3, 2008 at 6:48 PM, Volker Karlmeier <vo...@magiccode.eu>
wrote:

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Hello all,
>
>
> is it possible to design a list with an s:select-tag that conaints
> images ?
> I want to offer a list of available langauges with a flag, but how can
> I realize it ?
> any suggestions ?
>
>  Volker
>
> Stetze2008 schrieb:
> > hi,
> >
> > when opening http://localhost:8080/myApplication/ on my local Jetty
> > server instead of showing the action defined in the welcomefilelist
> > of my web.xml I'm asked to download a file from type
> > application/octet-stream.
> > it works on the tomcat internet server. does anybody know how to
> > solve this locally?
> >
> > thanks in advance,
> > Stefan
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> > For additional commands, e-mail: user-help@struts.apache.org
> >
>
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.3 (MingW32)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
>
> iD8DBQFIRbwUx4KjH6Tk4MMRAuNcAJ9EmrGuUWQp/GPGmZ/s446wk1vBPgCdHDgn
> cALnW+RM5LoUaK079Ashq1k=
> =VJb6
> -----END PGP SIGNATURE-----
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>