[OT] Applying CSS to css_xhtml theme

2008-08-30 Thread Roger
Sorry for the OT-ish question, but I'd guess that most people have come across this and I'm just trying to learn CSS. I'm trying to force a to display as two columns, labels to the left and input fields to the right. Google gave me this; .wwgrp br {display: none;} .wwlbl { float: left; clear:

Re: [OT] Applying CSS to css_xhtml theme

2008-08-30 Thread Dave Newton
--- On Sat, 8/30/08, Roger wrote: > .telephone { > background-color: red; > } That's a class, not an id. #telephone is id. Several sites that provide beginning tutorials covering stuff like this come up when I do a search on just "css", but if you want to get more specific, "css selectors". Da

Struts 2 & Hibernate Examples?

2008-08-30 Thread Andrew Myers
Hi, I was hoping someone may be able to send me some links to some useful tutorials or sample apps using Struts 2 and Hibernate, or failing that any good books that might guide me through this. Any advice would be greatly appreciated. Thanks! Andrew.

Re: REST Showcase 2.1.2

2008-08-30 Thread stanlick
I thought the framework created types that were null as a prerequisite to set parameters? The whole Google Juice 1.0 inject internals? Do you know the naming scheme for external validation? I feel like I need a secret REST 2 decoder ring or to become a member of the secret society! %-| Peace, S

Problem with radiobuttons

2008-08-30 Thread Mitxel Mitxelisimo
Hi, I´m trying to make a form to fill in a questionform that is composed by some questions and one radiobutton for each, and this is the problem, what can i do to this in my action? how i can fill in each radiobutton? the questionformbean has an questionbean`s array and this is that i don´t know t

RE: Struts 2 & Hibernate Examples?

2008-08-30 Thread Deepak Kumar
HI, Please check http://www.roseindia.net/struts/struts2 Thanks -Original Message- From: Andrew Myers [mailto:[EMAIL PROTECTED] Sent: Saturday, August 30, 2008 5:23 PM To: user@struts.apache.org Subject: Struts 2 & Hibernate Examples? Hi, I was hoping someone may be able to send me s

Re: There is no Action mapped for namespace / and action name ...

2008-08-30 Thread Stephan Schröder
no, deleting the namespace-attribute on the package didn't work for me. I did a little debugging and i got this far: The Dispatcher init-method invokes initTraditionalXMLConfigurations(). I think this is the place where all my namespace files (i got one for every package. they are included in str

Re: There is no Action mapped for namespace / and action name ...

2008-08-30 Thread Musachy Barroso
If you are using trunk I would suggest to use the new filters, I also had some trouble using the "old" fillter, this is what I have in my web.xml and everything seems to work fine: struts-prepare org.apache.struts2.dispatcher.ng.filter.StrutsPrepareFilter struts-execu

Re: Extending EJBInjection interceptor

2008-08-30 Thread Alexander Baetz
Thats a pretty good explanation of how the plugin works I was going to use this method because it was recommended by another user on the mailing list. EJB3 is no necessity, but i want to avoid making jndi lookups in every action i have. Is there another way to achive that? Greetings, Alex

RE: Extending EJBInjection interceptor

2008-08-30 Thread Martin Gainty
did you get a chance to look at using context.lookuphttp://www.tutorialized.com/view/tutorial/EJB-3-and-Struts-Framework-Tutorial-using-JBoss/11894 by Sebastian Hennebrueder public class ListBooksAction extends Action { /** * Method execute * * @param mapping * @param form * @param reques

Re: Struts 2 & Hibernate Examples?

2008-08-30 Thread Al Sutton
There's an article in the wiki at http://cwiki.apache.org/S2WIKI/struts-2-spring-2-jpa-ajax.html Al. Andrew Myers wrote: Hi, I was hoping someone may be able to send me some links to some useful tutorials or sample apps using Struts 2 and Hibernate, or failing that any good books that might g

Rest Plugin + IndexController and disabling content types

2008-08-30 Thread rakeshxp
Hi All, I have 2 questions regarding the struts-rest plugin ( 2.1.3-snapshot) 1) How can I write a controller that will handle the request on "/" ( i.e http://www.myhost.com )? 2) As I understand, the rest plugin by default handles XML and JSON extensions too ( http://struts.apache.org/2.x/docs

Re: There is no Action mapped for namespace / and action name ...

2008-08-30 Thread Stephan Schröder
> If you are using trunk not sure what you mean. you mean whether i use a new version from svn trunk? I found the root of the problem. Struts doens't find my struts.xml file (which includes my other files). The XmlConfigurationProvider.loadConfigurationFiles(String fileName, Element includeElemen

Message Store Interceptor - can not display error message with

2008-08-30 Thread doahh
I haven't used the http://struts.apache.org/2.0.11/docs/message-store-interceptor.html Message Store Interceptor so I maybe be using it wrongly or it could be by setup is a little twisted. I have a single error page for my web application. The error page will show if they are available and if

Re: Extending EJBInjection interceptor

2008-08-30 Thread Alexander Baetz
As i mentioned, i want to avoid doing the lookup every time. Thats why i wanted to write that interceptor. But there doesnt seem to be a good way to get Beans without doing the lookup directly in the action. At least i didnt find one. Greetings, Alexander Martin Gainty schrieb: did you get a

RE: Extending EJBInjection interceptor

2008-08-30 Thread Martin Gainty
you can use Spring framework to create a proxy which will be cached (from the JNDI lookup)to quote the doc:The EJB local home is cached on startup, so there’s only a single JNDI lookup. Each time the EJB is invoked, the proxy invokes the classname method on the local EJB and invokes the corresp

JSON SMD

2008-08-30 Thread Frans Thamura
hi all i want to know why the JSON plugins for response using @SMD i still find difficulty to debug and use this feature still dont get the idea can share? NB: anyone use this? -- -- Frans Thamura Meruvian Foundation Mobile: +62 855 7888 699 Linkedin: http://www.linkedin.com/in/fthamura

Re: JSON SMD

2008-08-30 Thread Musachy Barroso
It is used for JSON RPC, see http://www.ibm.com/developerworks/websphere/library/techarticles/0606_barcia/0606_barcia.html for some explanations. musachy On Sat, Aug 30, 2008 at 9:21 PM, Frans Thamura <[EMAIL PROTECTED]> wrote: > hi all > > i want to know > > why the JSON plugins for response u

Re: JSON SMD

2008-08-30 Thread Frans Thamura
On Sun, Aug 31, 2008 at 8:43 AM, Musachy Barroso <[EMAIL PROTECTED]> wrote: > It is used for JSON RPC, see > > http://www.ibm.com/developerworks/websphere/library/techarticles/0606_barcia/0606_barcia.html > > for some explanations. i got json-lib is there any idea to use this lib inside struts2?

Re: Extending EJBInjection interceptor

2008-08-30 Thread David N. Arnold
I'm not sure what you mean. Even though I advised against it, I explained how to do it. To be specific, you write an interceptor that scans the incoming action instance for @EJB annotations. For each annotation, you check the HttpSession to see if you already have a reference for the specified c

help required to install struts 1.2 plugin for eclipse 3.2

2008-08-30 Thread Narasimha Raju Naidu
hi to all, I am new to eclipse, can any one help me. i need instructions for installing struts 1.2 plugin for eclipse 3.2. waiting for you peoples reply -- Regards, Narasimha Raju.Naidu Hyderabad. uni...