Re: [Tobago] Problem with JSTL and multiple markup attributes

2007-04-27 Thread Helmut Swaczinna

Hi Volker,

ok, I thought I can specify a markup attribute more than once because I get 
no error doing this without JSTL.
But I don't understand why the valdation is only executed, when the JSTL 
taglib is included.

Can you explain this to me?

Regards
Helmut


- Original Message - 
From: Volker Weber [EMAIL PROTECTED]

To: MyFaces Discussion users@myfaces.apache.org
Sent: Thursday, April 26, 2007 9:34 PM
Subject: Re: [Tobago] Problem with JSTL and multiple markup attributes



Hi Helmut,

you can't have multiple markup attributes at one tag. But you can set
multiple markups in one attribute.

The markup attribute takes a comma separated list of markups, or a
valuebinding to a String[] property, or a valuebinding to a single
markup string.

Regards,
 Volker


2007/4/26, Helmut Swaczinna [EMAIL PROTECTED]:



Hi,

when I include the JSTL taglib in my page (%@ taglib
uri=http://java.sun.com/jsp/jstl/core; prefix=c %) I
can't use
multiple markup attributes. JSTL seems to do some validation which Tobago
itself does not:

04-26 18:41:54,234 ERROR GENA-WAPP [http-8080-Processor25] [jsp]
Servlet.service() for servlet jsp threw exception
org.apache.jasper.JasperException: h3Validation error
messages from TagLibraryValidator for c in 
/edit/headView.jsp/h3pnull:

org.xml.sax.SAXPars
eException: Attribute markup was already specified for element
tc:textarea./p

Is it possible to turm off this validation? What knows JSTL about Tobago
tags?

Regards
Helmut







Re: [Tobago] Problem with JSTL and multiple markup attributes

2007-04-27 Thread Volker Weber

Hi,Helmut,

no i can't.

what happens when you specifiy any other attribute multiple times?


Regards,
   Volker

2007/4/27, Helmut Swaczinna [EMAIL PROTECTED]:

Hi Volker,

ok, I thought I can specify a markup attribute more than once because I get
no error doing this without JSTL.
But I don't understand why the valdation is only executed, when the JSTL
taglib is included.
Can you explain this to me?

Regards
Helmut


- Original Message -
From: Volker Weber [EMAIL PROTECTED]
To: MyFaces Discussion users@myfaces.apache.org
Sent: Thursday, April 26, 2007 9:34 PM
Subject: Re: [Tobago] Problem with JSTL and multiple markup attributes


 Hi Helmut,

 you can't have multiple markup attributes at one tag. But you can set
 multiple markups in one attribute.

 The markup attribute takes a comma separated list of markups, or a
 valuebinding to a String[] property, or a valuebinding to a single
 markup string.

 Regards,
  Volker


 2007/4/26, Helmut Swaczinna [EMAIL PROTECTED]:


 Hi,

 when I include the JSTL taglib in my page (%@ taglib
 uri=http://java.sun.com/jsp/jstl/core; prefix=c %) I
 can't use
 multiple markup attributes. JSTL seems to do some validation which Tobago
 itself does not:

 04-26 18:41:54,234 ERROR GENA-WAPP [http-8080-Processor25] [jsp]
 Servlet.service() for servlet jsp threw exception
 org.apache.jasper.JasperException: h3Validation error
 messages from TagLibraryValidator for c in
 /edit/headView.jsp/h3pnull:
 org.xml.sax.SAXPars
 eException: Attribute markup was already specified for element
 tc:textarea./p

 Is it possible to turm off this validation? What knows JSTL about Tobago
 tags?

 Regards
 Helmut






Re: [Tobago] Problem with JSTL and multiple markup attributes

2007-04-27 Thread Helmut Swaczinna

Hi Volker,

I can specify every attribute more than once as long as I don't include the 
JSTL taglib.


Regards
Helmut


- Original Message - 
From: Volker Weber [EMAIL PROTECTED]

To: MyFaces Discussion users@myfaces.apache.org
Sent: Friday, April 27, 2007 11:56 AM
Subject: Re: [Tobago] Problem with JSTL and multiple markup attributes



Hi,Helmut,

no i can't.

what happens when you specifiy any other attribute multiple times?


Regards,
   Volker

2007/4/27, Helmut Swaczinna [EMAIL PROTECTED]:

Hi Volker,

ok, I thought I can specify a markup attribute more than once because I 
get

no error doing this without JSTL.
But I don't understand why the valdation is only executed, when the JSTL
taglib is included.
Can you explain this to me?

Regards
Helmut


- Original Message -
From: Volker Weber [EMAIL PROTECTED]
To: MyFaces Discussion users@myfaces.apache.org
Sent: Thursday, April 26, 2007 9:34 PM
Subject: Re: [Tobago] Problem with JSTL and multiple markup attributes


 Hi Helmut,

 you can't have multiple markup attributes at one tag. But you can set
 multiple markups in one attribute.

 The markup attribute takes a comma separated list of markups, or a
 valuebinding to a String[] property, or a valuebinding to a single
 markup string.

 Regards,
  Volker


 2007/4/26, Helmut Swaczinna [EMAIL PROTECTED]:


 Hi,

 when I include the JSTL taglib in my page (%@ taglib
 uri=http://java.sun.com/jsp/jstl/core; prefix=c %) I
 can't use
 multiple markup attributes. JSTL seems to do some validation which 
 Tobago

 itself does not:

 04-26 18:41:54,234 ERROR GENA-WAPP [http-8080-Processor25] [jsp]
 Servlet.service() for servlet jsp threw exception
 org.apache.jasper.JasperException: h3Validation error
 messages from TagLibraryValidator for c in
 /edit/headView.jsp/h3pnull:
 org.xml.sax.SAXPars
 eException: Attribute markup was already specified for element
 tc:textarea./p

 Is it possible to turm off this validation? What knows JSTL about 
 Tobago

 tags?

 Regards
 Helmut











[Tobago] Problem with JSTL and multiple markup attributes

2007-04-26 Thread Helmut Swaczinna
Hi,

when I include the JSTL taglib in my page (%@ taglib 
uri=http://java.sun.com/jsp/jstl/core; prefix=c %) I can't use
multiple markup attributes. JSTL seems to do some validation which Tobago 
itself does not:

04-26 18:41:54,234 ERROR GENA-WAPP [http-8080-Processor25] [jsp] 
Servlet.service() for servlet jsp threw exception
org.apache.jasper.JasperException: h3Validation error messages from 
TagLibraryValidator for c in /edit/headView.jsp/h3pnull: org.xml.sax.SAXPars
eException: Attribute markup was already specified for element 
tc:textarea./p

Is it possible to turm off this validation? What knows JSTL about Tobago tags?

Regards
Helmut

Re: [Tobago] Problem with JSTL and multiple markup attributes

2007-04-26 Thread Volker Weber

Hi Helmut,

you can't have multiple markup attributes at one tag. But you can set
multiple markups in one attribute.

The markup attribute takes a comma separated list of markups, or a
valuebinding to a String[] property, or a valuebinding to a single
markup string.

Regards,
 Volker


2007/4/26, Helmut Swaczinna [EMAIL PROTECTED]:



Hi,

when I include the JSTL taglib in my page (%@ taglib
uri=http://java.sun.com/jsp/jstl/core; prefix=c %) I
can't use
multiple markup attributes. JSTL seems to do some validation which Tobago
itself does not:

04-26 18:41:54,234 ERROR GENA-WAPP [http-8080-Processor25] [jsp]
Servlet.service() for servlet jsp threw exception
org.apache.jasper.JasperException: h3Validation error
messages from TagLibraryValidator for c in /edit/headView.jsp/h3pnull:
org.xml.sax.SAXPars
eException: Attribute markup was already specified for element
tc:textarea./p

Is it possible to turm off this validation? What knows JSTL about Tobago
tags?

Regards
Helmut


Re: [Tobago] Problem with JSTL

2007-02-03 Thread madan chowdary
hi all,

I resolved the problem by placing standards.jar and jstl.jar in my lib and was 
able to use JSTL core tag.

But was facing a issue when using conditional checking in my JSP.

a part of my JSP looks like this

tc:cell
  c:choose
c:when test=${requestScope.checkout.shipToLookup}
   tc:out value=ShipToLookup is enabled /
/c:when
c:otherwise
   tc:out value=ShipToLookup is disabled /  
  
/c:otherwise
   /c:choose 
/tc:cell

the getter for this shipToLookup is as such

public boolean getShipToLookup() {
return true;
//return shipToLookup;
}

but always i get the output as  ShipToLookup is disabled  which is printed 
with tc:out/ as shown in above jsp snippet.

not only this, i am checking for a variable if it is equal to 1 . 

Even that condition is also failing.

Is it problem with JSTL or Tobago or me ? its very confusing.

Awaiting for a response ASAP.

Thnx in regards,
Madan


- Original Message 
From: Udo Schnurpfeil [EMAIL PROTECTED]
To: MyFaces Discussion users@myfaces.apache.org
Sent: Monday, 29 January, 2007 1:16:56 PM
Subject: Re: [Tobago] Problem with JSTL

Hello Madan,

seens this is not a Tobago but a JSTL question.

Do you have an implementation for the JSTL in your classpath? You need 
both: API + Impl.
You may use the apache implementation (standard.jar): See 
http://jakarta.apache.org/taglibs/
If using maven try to add:
dependency
groupIdtaglibs/groupId
artifactIdstandard/artifactId
version1.1.2/version
scoperuntime/scope
/dependency

Hope that helps

Udo

madan chowdary schrieb:
 Hi all,

 i was having problem with JSTL tag.

 I want to display 20 text fields in each row.

 Thought to use tc:forEach/, but saw that its deprecated in tlddocs.

 So opted for c:forEach/.

 I included jstl.jar in lib directory.

 tried with both

 %@ taglib uri=http://java.sun.com/jsp/jstl/core;; preifx=c %

 and

 %@ taglib uri=http://java.sun.com/jstl/core;; preifx=c %

 But was getting error saying that the taglib is not specified in 
 web.xml or either in the classpath.

 tried with different versions of JSTL.But same error.

 how to achieve my task using c:forEach/

 thnx in regards,

 Madan

 
 Here’s a new way to find what you're looking for - Yahoo! Answers 
 http://us.rd.yahoo.com/mail/in/yanswers/*http://in.answers.yahoo.com/ 









__
Yahoo! India Answers: Share what you know. Learn something new
http://in.answers.yahoo.com/

Re: [Tobago] Problem with JSTL

2007-02-03 Thread Bernd Bohmann

Hello Madan,

why you choose jstl?

jstl and jsf doesn't work very well together.
Please try a web search.

Why you don't use this

tc:out value=#{somemangedbean.shipToLookup}/


Regards

Bernd

madan chowdary wrote:

hi all,

I resolved the problem by placing standards.jar and jstl.jar in my lib and was 
able to use JSTL core tag.

But was facing a issue when using conditional checking in my JSP.

a part of my JSP looks like this

tc:cell
  c:choose
c:when test=${requestScope.checkout.shipToLookup}
   tc:out value=ShipToLookup is enabled /
/c:when
c:otherwise
   tc:out value=ShipToLookup is disabled /
/c:otherwise
   /c:choose 
/tc:cell


the getter for this shipToLookup is as such

public boolean getShipToLookup() {
return true;
//return shipToLookup;
}

but always i get the output as  ShipToLookup is disabled  which is printed with 
tc:out/ as shown in above jsp snippet.

not only this, i am checking for a variable if it is equal to 1 . 


Even that condition is also failing.

Is it problem with JSTL or Tobago or me ? its very confusing.

Awaiting for a response ASAP.

Thnx in regards,
Madan


- Original Message 
From: Udo Schnurpfeil [EMAIL PROTECTED]
To: MyFaces Discussion users@myfaces.apache.org
Sent: Monday, 29 January, 2007 1:16:56 PM
Subject: Re: [Tobago] Problem with JSTL

Hello Madan,

seens this is not a Tobago but a JSTL question.

Do you have an implementation for the JSTL in your classpath? You need 
both: API + Impl.
You may use the apache implementation (standard.jar): See 
http://jakarta.apache.org/taglibs/

If using maven try to add:
dependency
groupIdtaglibs/groupId
artifactIdstandard/artifactId
version1.1.2/version
scoperuntime/scope
/dependency

Hope that helps

Udo

madan chowdary schrieb:

Hi all,

i was having problem with JSTL tag.

I want to display 20 text fields in each row.

Thought to use tc:forEach/, but saw that its deprecated in tlddocs.

So opted for c:forEach/.

I included jstl.jar in lib directory.

tried with both

%@ taglib uri=http://java.sun.com/jsp/jstl/core;; preifx=c %

and

%@ taglib uri=http://java.sun.com/jstl/core;; preifx=c %

But was getting error saying that the taglib is not specified in 
web.xml or either in the classpath.


tried with different versions of JSTL.But same error.

how to achieve my task using c:forEach/

thnx in regards,

Madan


Here’s a new way to find what you're looking for - Yahoo! Answers 
http://us.rd.yahoo.com/mail/in/yanswers/*http://in.answers.yahoo.com/ 










__
Yahoo! India Answers: Share what you know. Learn something new
http://in.answers.yahoo.com/


Re: [Tobago] Problem with JSTL

2007-02-03 Thread madan chowdary
Hi bred,

ya i did a couple of search on web but didn't find anything that would be 
useful when doing some kind of conditional checking in JSP code which using 
Tobago.

The tc:out/ is placed just for debugging .

The actual case is to display different components for different conditions.

say if  shipToLookup is true  then a tc:in should be displayed else 
tc:selectOneChoice/ must be displayed

So thats the reason i was using JSTL.

If not using JSTL, plz advice me how to proceed with the above case.

a bit urgent for this now.

Regards,
Madan

- Original Message 
From: Bernd Bohmann [EMAIL PROTECTED]
To: MyFaces Discussion users@myfaces.apache.org
Sent: Saturday, 3 February, 2007 3:40:42 PM
Subject: Re: [Tobago] Problem with JSTL

Hello Madan,

why you choose jstl?

jstl and jsf doesn't work very well together.
Please try a web search.

Why you don't use this

tc:out value=#{somemangedbean.shipToLookup}/


Regards

Bernd

madan chowdary wrote:
 hi all,
 
 I resolved the problem by placing standards.jar and jstl.jar in my lib and 
 was able to use JSTL core tag.
 
 But was facing a issue when using conditional checking in my JSP.
 
 a part of my JSP looks like this
 
 tc:cell
   c:choose
 c:when test=${requestScope.checkout.shipToLookup}
tc:out value=ShipToLookup is enabled /
 /c:when
 c:otherwise
tc:out value=ShipToLookup is disabled /
 
 /c:otherwise
/c:choose 
 /tc:cell
 
 the getter for this shipToLookup is as such
 
 public boolean getShipToLookup() {
 return true;
 //return shipToLookup;
 }
 
 but always i get the output as  ShipToLookup is disabled  which is printed 
 with tc:out/ as shown in above jsp snippet.
 
 not only this, i am checking for a variable if it is equal to 1 . 
 
 Even that condition is also failing.
 
 Is it problem with JSTL or Tobago or me ? its very confusing.
 
 Awaiting for a response ASAP.
 
 Thnx in regards,
 Madan
 
 
 - Original Message 
 From: Udo Schnurpfeil [EMAIL PROTECTED]
 To: MyFaces Discussion users@myfaces.apache.org
 Sent: Monday, 29 January, 2007 1:16:56 PM
 Subject: Re: [Tobago] Problem with JSTL
 
 Hello Madan,
 
 seens this is not a Tobago but a JSTL question.
 
 Do you have an implementation for the JSTL in your classpath? You need 
 both: API + Impl.
 You may use the apache implementation (standard.jar): See 
 http://jakarta.apache.org/taglibs/
 If using maven try to add:
 dependency
 groupIdtaglibs/groupId
 artifactIdstandard/artifactId
 version1.1.2/version
 scoperuntime/scope
 /dependency
 
 Hope that helps
 
 Udo
 
 madan chowdary schrieb:
 Hi all,

 i was having problem with JSTL tag.

 I want to display 20 text fields in each row.

 Thought to use tc:forEach/, but saw that its deprecated in tlddocs.

 So opted for c:forEach/.

 I included jstl.jar in lib directory.

 tried with both

 %@ taglib uri=http://java.sun.com/jsp/jstl/core;;; preifx=c %

 and

 %@ taglib uri=http://java.sun.com/jstl/core;;; preifx=c %

 But was getting error saying that the taglib is not specified in 
 web.xml or either in the classpath.

 tried with different versions of JSTL.But same error.

 how to achieve my task using c:forEach/

 thnx in regards,

 Madan

 
 Here’s a new way to find what you're looking for - Yahoo! Answers 
 http://us.rd.yahoo.com/mail/in/yanswers/*http://in.answers.yahoo.com/ 
 
 
 
 
 
 
 
 
 
 __
 Yahoo! India Answers: Share what you know. Learn something new
 http://in.answers.yahoo.com/








__
Yahoo! India Answers: Share what you know. Learn something new
http://in.answers.yahoo.com/

Re: [Tobago] Problem with JSTL

2007-02-03 Thread Bernd Bohmann

Hello Madan,

you can use the rendered attribute

tc:in  rendered=#{somemangedbean.shipToLookup} /
tc:selectOneChoice rendered=#{!somemangedbean.shipToLookup} /

Bernd

madan chowdary wrote:

Hi bred,

ya i did a couple of search on web but didn't find anything that would be 
useful when doing some kind of conditional checking in JSP code which using 
Tobago.

The tc:out/ is placed just for debugging .

The actual case is to display different components for different conditions.

say if  shipToLookup is true  then a tc:in should be displayed else 
tc:selectOneChoice/ must be displayed

So thats the reason i was using JSTL.

If not using JSTL, plz advice me how to proceed with the above case.

a bit urgent for this now.

Regards,
Madan

- Original Message 
From: Bernd Bohmann [EMAIL PROTECTED]
To: MyFaces Discussion users@myfaces.apache.org
Sent: Saturday, 3 February, 2007 3:40:42 PM
Subject: Re: [Tobago] Problem with JSTL

Hello Madan,

why you choose jstl?

jstl and jsf doesn't work very well together.
Please try a web search.

Why you don't use this

tc:out value=#{somemangedbean.shipToLookup}/


Regards

Bernd

madan chowdary wrote:

hi all,

I resolved the problem by placing standards.jar and jstl.jar in my lib and was 
able to use JSTL core tag.

But was facing a issue when using conditional checking in my JSP.

a part of my JSP looks like this

tc:cell
  c:choose
c:when test=${requestScope.checkout.shipToLookup}
   tc:out value=ShipToLookup is enabled /
/c:when
c:otherwise
   tc:out value=ShipToLookup is disabled /
/c:otherwise
   /c:choose 
/tc:cell


the getter for this shipToLookup is as such

public boolean getShipToLookup() {
return true;
//return shipToLookup;
}

but always i get the output as  ShipToLookup is disabled  which is printed with 
tc:out/ as shown in above jsp snippet.

not only this, i am checking for a variable if it is equal to 1 . 


Even that condition is also failing.

Is it problem with JSTL or Tobago or me ? its very confusing.

Awaiting for a response ASAP.

Thnx in regards,
Madan


- Original Message 
From: Udo Schnurpfeil [EMAIL PROTECTED]
To: MyFaces Discussion users@myfaces.apache.org
Sent: Monday, 29 January, 2007 1:16:56 PM
Subject: Re: [Tobago] Problem with JSTL

Hello Madan,

seens this is not a Tobago but a JSTL question.

Do you have an implementation for the JSTL in your classpath? You need 
both: API + Impl.
You may use the apache implementation (standard.jar): See 
http://jakarta.apache.org/taglibs/

If using maven try to add:
dependency
groupIdtaglibs/groupId
artifactIdstandard/artifactId
version1.1.2/version
scoperuntime/scope
/dependency

Hope that helps

Udo

madan chowdary schrieb:

Hi all,

i was having problem with JSTL tag.

I want to display 20 text fields in each row.

Thought to use tc:forEach/, but saw that its deprecated in tlddocs.

So opted for c:forEach/.

I included jstl.jar in lib directory.

tried with both

%@ taglib uri=http://java.sun.com/jsp/jstl/core;;; preifx=c %

and

%@ taglib uri=http://java.sun.com/jstl/core;;; preifx=c %

But was getting error saying that the taglib is not specified in 
web.xml or either in the classpath.


tried with different versions of JSTL.But same error.

how to achieve my task using c:forEach/

thnx in regards,

Madan


Here’s a new way to find what you're looking for - Yahoo! Answers 
http://us.rd.yahoo.com/mail/in/yanswers/*http://in.answers.yahoo.com/ 









__

Yahoo! India Answers: Share what you know. Learn something new
http://in.answers.yahoo.com/









__
Yahoo! India Answers: Share what you know. Learn something new
http://in.answers.yahoo.com/


Re: [Tobago] Problem with JSTL

2007-02-03 Thread madan chowdary
ya bernd,

thnx for the reply...

its working fine now.

I got one more doubt regarding tx:selectOneChoice/ .

There are two list boxes, one of the list box depends on other.

Say if i select car, the second list box should display list of cars available.

if i select bike, the second list box should display list of bikes available.

Saw the onchange event for tx:selectOneChoice/, but dont know how to proceed 
with Tobago.

how can i achieve my task with this case ?

Madan

- Original Message 
From: Bernd Bohmann [EMAIL PROTECTED]
To: MyFaces Discussion users@myfaces.apache.org
Sent: Saturday, 3 February, 2007 5:05:25 PM
Subject: Re: [Tobago] Problem with JSTL

Hello Madan,

you can use the rendered attribute

tc:in  rendered=#{somemangedbean.shipToLookup} /
tc:selectOneChoice rendered=#{!somemangedbean.shipToLookup} /

Bernd

madan chowdary wrote:
 Hi bred,
 
 ya i did a couple of search on web but didn't find anything that would be 
 useful when doing some kind of conditional checking in JSP code which using 
 Tobago.
 
 The tc:out/ is placed just for debugging .
 
 The actual case is to display different components for different conditions.
 
 say if  shipToLookup is true  then a tc:in should be displayed else 
 tc:selectOneChoice/ must be displayed
 
 So thats the reason i was using JSTL.
 
 If not using JSTL, plz advice me how to proceed with the above case.
 
 a bit urgent for this now.
 
 Regards,
 Madan
 
 - Original Message 
 From: Bernd Bohmann [EMAIL PROTECTED]
 To: MyFaces Discussion users@myfaces.apache.org
 Sent: Saturday, 3 February, 2007 3:40:42 PM
 Subject: Re: [Tobago] Problem with JSTL
 
 Hello Madan,
 
 why you choose jstl?
 
 jstl and jsf doesn't work very well together.
 Please try a web search.
 
 Why you don't use this
 
 tc:out value=#{somemangedbean.shipToLookup}/
 
 
 Regards
 
 Bernd
 
 madan chowdary wrote:
 hi all,

 I resolved the problem by placing standards.jar and jstl.jar in my lib and 
 was able to use JSTL core tag.

 But was facing a issue when using conditional checking in my JSP.

 a part of my JSP looks like this

 tc:cell
   c:choose
 c:when test=${requestScope.checkout.shipToLookup}
tc:out value=ShipToLookup is enabled /
 /c:when
 c:otherwise
tc:out value=ShipToLookup is disabled /   
  
 /c:otherwise
/c:choose 
 /tc:cell

 the getter for this shipToLookup is as such

 public boolean getShipToLookup() {
 return true;
 //return shipToLookup;
 }

 but always i get the output as  ShipToLookup is disabled  which is printed 
 with tc:out/ as shown in above jsp snippet.

 not only this, i am checking for a variable if it is equal to 1 . 

 Even that condition is also failing.

 Is it problem with JSTL or Tobago or me ? its very confusing.

 Awaiting for a response ASAP.

 Thnx in regards,
 Madan


 - Original Message 
 From: Udo Schnurpfeil [EMAIL PROTECTED]
 To: MyFaces Discussion users@myfaces.apache.org
 Sent: Monday, 29 January, 2007 1:16:56 PM
 Subject: Re: [Tobago] Problem with JSTL

 Hello Madan,

 seens this is not a Tobago but a JSTL question.

 Do you have an implementation for the JSTL in your classpath? You need 
 both: API + Impl.
 You may use the apache implementation (standard.jar): See 
 http://jakarta.apache.org/taglibs/
 If using maven try to add:
 dependency
 groupIdtaglibs/groupId
 artifactIdstandard/artifactId
 version1.1.2/version
 scoperuntime/scope
 /dependency

 Hope that helps

 Udo

 madan chowdary schrieb:
 Hi all,

 i was having problem with JSTL tag.

 I want to display 20 text fields in each row.

 Thought to use tc:forEach/, but saw that its deprecated in tlddocs.

 So opted for c:forEach/.

 I included jstl.jar in lib directory.

 tried with both

 %@ taglib uri=http://java.sun.com/jsp/jstl/core preifx=c %

 and

 %@ taglib uri=http://java.sun.com/jstl/core preifx=c %

 But was getting error saying that the taglib is not specified in 
 web.xml or either in the classpath.

 tried with different versions of JSTL.But same error.

 how to achieve my task using c:forEach/

 thnx in regards,

 Madan

 
 Here’s a new way to find what you're looking for - Yahoo! Answers 
 http://us.rd.yahoo.com/mail/in/yanswers/*http://in.answers.yahoo.com/ 







 
 __
 Yahoo! India Answers: Share what you know. Learn something new
 http://in.answers.yahoo.com/
 
 
 
 
 
 
 
 
 __
 Yahoo! India Answers: Share what you know. Learn something new
 http://in.answers.yahoo.com/








__
Yahoo! India Answers: Share what you know. Learn something new
http://in.answers.yahoo.com/

Re: [Tobago] Problem with JSTL

2007-02-03 Thread Bernd Bohmann

Hello Madan,

use the

 f:facet name=change
tc:command /
  /f:facet

for selectOneChoice

a working example you can find at:

http://svn.apache.org/viewvc/myfaces/tobago/trunk/tobago-tool/gendoc/src/main/webapp/screenshot/selectOneChoice.jsp?revision=496963view=markup

Bernd

madan chowdary wrote:

ya bernd,

thnx for the reply...

its working fine now.

I got one more doubt regarding tx:selectOneChoice/ .

There are two list boxes, one of the list box depends on other.

Say if i select car, the second list box should display list of cars available.

if i select bike, the second list box should display list of bikes available.

Saw the onchange event for tx:selectOneChoice/, but dont know how to proceed 
with Tobago.

how can i achieve my task with this case ?

Madan

- Original Message 
From: Bernd Bohmann [EMAIL PROTECTED]
To: MyFaces Discussion users@myfaces.apache.org
Sent: Saturday, 3 February, 2007 5:05:25 PM
Subject: Re: [Tobago] Problem with JSTL

Hello Madan,

you can use the rendered attribute

tc:in  rendered=#{somemangedbean.shipToLookup} /
tc:selectOneChoice rendered=#{!somemangedbean.shipToLookup} /

Bernd

madan chowdary wrote:

Hi bred,

ya i did a couple of search on web but didn't find anything that would be 
useful when doing some kind of conditional checking in JSP code which using 
Tobago.

The tc:out/ is placed just for debugging .

The actual case is to display different components for different conditions.

say if  shipToLookup is true  then a tc:in should be displayed else 
tc:selectOneChoice/ must be displayed

So thats the reason i was using JSTL.

If not using JSTL, plz advice me how to proceed with the above case.

a bit urgent for this now.

Regards,
Madan

- Original Message 
From: Bernd Bohmann [EMAIL PROTECTED]
To: MyFaces Discussion users@myfaces.apache.org
Sent: Saturday, 3 February, 2007 3:40:42 PM
Subject: Re: [Tobago] Problem with JSTL

Hello Madan,

why you choose jstl?

jstl and jsf doesn't work very well together.
Please try a web search.

Why you don't use this

tc:out value=#{somemangedbean.shipToLookup}/


Regards

Bernd

madan chowdary wrote:

hi all,

I resolved the problem by placing standards.jar and jstl.jar in my lib and was 
able to use JSTL core tag.

But was facing a issue when using conditional checking in my JSP.

a part of my JSP looks like this

tc:cell
  c:choose
c:when test=${requestScope.checkout.shipToLookup}
   tc:out value=ShipToLookup is enabled /
/c:when
c:otherwise
   tc:out value=ShipToLookup is disabled /
/c:otherwise
   /c:choose 
/tc:cell


the getter for this shipToLookup is as such

public boolean getShipToLookup() {
return true;
//return shipToLookup;
}

but always i get the output as  ShipToLookup is disabled  which is printed with 
tc:out/ as shown in above jsp snippet.

not only this, i am checking for a variable if it is equal to 1 . 


Even that condition is also failing.

Is it problem with JSTL or Tobago or me ? its very confusing.

Awaiting for a response ASAP.

Thnx in regards,
Madan


- Original Message 
From: Udo Schnurpfeil [EMAIL PROTECTED]
To: MyFaces Discussion users@myfaces.apache.org
Sent: Monday, 29 January, 2007 1:16:56 PM
Subject: Re: [Tobago] Problem with JSTL

Hello Madan,

seens this is not a Tobago but a JSTL question.

Do you have an implementation for the JSTL in your classpath? You need 
both: API + Impl.
You may use the apache implementation (standard.jar): See 
http://jakarta.apache.org/taglibs/

If using maven try to add:
dependency
groupIdtaglibs/groupId
artifactIdstandard/artifactId
version1.1.2/version
scoperuntime/scope
/dependency

Hope that helps

Udo

madan chowdary schrieb:

Hi all,

i was having problem with JSTL tag.

I want to display 20 text fields in each row.

Thought to use tc:forEach/, but saw that its deprecated in tlddocs.

So opted for c:forEach/.

I included jstl.jar in lib directory.

tried with both

%@ taglib uri=http://java.sun.com/jsp/jstl/core preifx=c %

and

%@ taglib uri=http://java.sun.com/jstl/core preifx=c %

But was getting error saying that the taglib is not specified in 
web.xml or either in the classpath.


tried with different versions of JSTL.But same error.

how to achieve my task using c:forEach/

thnx in regards,

Madan


Here’s a new way to find what you're looking for - Yahoo! Answers 
http://us.rd.yahoo.com/mail/in/yanswers/*http://in.answers.yahoo.com/ 








__

Yahoo! India Answers: Share what you know. Learn something new
http://in.answers.yahoo.com/








__

Yahoo! India Answers: Share what you know. Learn something new
http://in.answers.yahoo.com

Re: [Tobago] Problem with JSTL

2007-02-03 Thread madan chowdary
hi Bernd,

thnx for ur patience for replying my queries, 

but i am not experienced but trying to grasp the tech. 

saw the example that u specified. but was bit confused seeing that.

i placed the command 

f:facet name=change
tc:command /
/f:facet

in the first tx:selectOneChoice/. when i select one of the item in the list, 
the page gets refreshed.

So where should i write my code that updates the values in the second 
tx:selectoneChoice/

think that would be done with the valueChangeListener method in the bean.

can u send me a sample java code that would update the values in the Listbox 
when a particular item is selected in the first.

and one more thing, 

when i use the 

f:facet name=change

tc:command /

/f:facet

the label for the tx:selectOneChoice/ is displayed in red as it does when we 
use required=true.

should we place immediate=true for this component.

thnx

Madan



- Original Message 
From: Bernd Bohmann [EMAIL PROTECTED]
To: MyFaces Discussion users@myfaces.apache.org
Sent: Saturday, 3 February, 2007 5:53:38 PM
Subject: Re: [Tobago] Problem with JSTL

Hello Madan,

use the

  f:facet name=change
 tc:command /
   /f:facet

for selectOneChoice

a working example you can find at:

http://svn.apache.org/viewvc/myfaces/tobago/trunk/tobago-tool/gendoc/src/main/webapp/screenshot/selectOneChoice.jsp?revision=496963view=markup

Bernd

madan chowdary wrote:
 ya bernd,
 
 thnx for the reply...
 
 its working fine now.
 
 I got one more doubt regarding tx:selectOneChoice/ .
 
 There are two list boxes, one of the list box depends on other.
 
 Say if i select car, the second list box should display list of cars 
 available.
 
 if i select bike, the second list box should display list of bikes available.
 
 Saw the onchange event for tx:selectOneChoice/, but dont know how to 
 proceed with Tobago.
 
 how can i achieve my task with this case ?
 
 Madan
 
 - Original Message 
 From: Bernd Bohmann [EMAIL PROTECTED]
 To: MyFaces Discussion users@myfaces.apache.org
 Sent: Saturday, 3 February, 2007 5:05:25 PM
 Subject: Re: [Tobago] Problem with JSTL
 
 Hello Madan,
 
 you can use the rendered attribute
 
 tc:in  rendered=#{somemangedbean.shipToLookup} /
 tc:selectOneChoice rendered=#{!somemangedbean.shipToLookup} /
 
 Bernd
 
 madan chowdary wrote:
 Hi bred,

 ya i did a couple of search on web but didn't find anything that would be 
 useful when doing some kind of conditional checking in JSP code which using 
 Tobago.

 The tc:out/ is placed just for debugging .

 The actual case is to display different components for different conditions.

 say if  shipToLookup is true  then a tc:in should be displayed else 
 tc:selectOneChoice/ must be displayed

 So thats the reason i was using JSTL.

 If not using JSTL, plz advice me how to proceed with the above case.

 a bit urgent for this now.

 Regards,
 Madan

 - Original Message 
 From: Bernd Bohmann [EMAIL PROTECTED]
 To: MyFaces Discussion users@myfaces.apache.org
 Sent: Saturday, 3 February, 2007 3:40:42 PM
 Subject: Re: [Tobago] Problem with JSTL

 Hello Madan,

 why you choose jstl?

 jstl and jsf doesn't work very well together.
 Please try a web search.

 Why you don't use this

 tc:out value=#{somemangedbean.shipToLookup}/


 Regards

 Bernd

 madan chowdary wrote:
 hi all,

 I resolved the problem by placing standards.jar and jstl.jar in my lib and 
 was able to use JSTL core tag.

 But was facing a issue when using conditional checking in my JSP.

 a part of my JSP looks like this

 tc:cell
   c:choose
 c:when test=${requestScope.checkout.shipToLookup}
tc:out value=ShipToLookup is enabled /
 /c:when
 c:otherwise
tc:out value=ShipToLookup is disabled /  
   
 /c:otherwise
/c:choose 
 /tc:cell

 the getter for this shipToLookup is as such

 public boolean getShipToLookup() {
 return true;
 //return shipToLookup;
 }

 but always i get the output as  ShipToLookup is disabled  which is 
 printed with tc:out/ as shown in above jsp snippet.

 not only this, i am checking for a variable if it is equal to 1 . 

 Even that condition is also failing.

 Is it problem with JSTL or Tobago or me ? its very confusing.

 Awaiting for a response ASAP.

 Thnx in regards,
 Madan


 - Original Message 
 From: Udo Schnurpfeil [EMAIL PROTECTED]
 To: MyFaces Discussion users@myfaces.apache.org
 Sent: Monday, 29 January, 2007 1:16:56 PM
 Subject: Re: [Tobago] Problem with JSTL

 Hello Madan,

 seens this is not a Tobago but a JSTL question.

 Do you have an implementation for the JSTL in your classpath? You need 
 both: API + Impl.
 You may use the apache implementation (standard.jar): See 
 http://jakarta.apache.org/taglibs/
 If using maven try to add:
 dependency
 groupIdtaglibs/groupId
 artifactIdstandard/artifactId
 version1.1.2/version
 scoperuntime/scope
 /dependency

 Hope that helps

 Udo

 madan

Re: [Tobago] Problem with JSTL

2007-02-03 Thread madan chowdary
was getting this error in the log

18:41:22,250 INFO  [STDOUT] 18:41:22,250 DEBUG [CheckoutController] 
18:41:22,265 INFO  [STDOUT] 18:41:22,265 DEBUG [CheckoutController] Checkout Con
troller Instance Created
18:41:22,265 INFO  [STDOUT] 18:41:22,265 DEBUG [CheckoutController] 
18:41:22,390 INFO  [STDOUT] 18:41:22,390 ERROR [ResourceManagerImpl] Path not fo
und, and no fallback. Using empty string.
resourceDirs = '[tobago-resource, org/apache/myfaces/tobago/renderkit]' contentT
ype = 'html' theme = 'speyside' browser = 'mozilla_5_0' subDir = 'property' name
 = 'tobago' suffix = '' key = 'javax.faces.component.UISelectOne.INVALID'

i wrote the valueChangeListener method also, but was getting the same error as 
shown above..


- Original Message 
From: madan chowdary [EMAIL PROTECTED]
To: MyFaces Discussion users@myfaces.apache.org
Sent: Saturday, 3 February, 2007 6:19:34 PM
Subject: Re: [Tobago] Problem with JSTL

hi Bernd,

thnx for ur patience for replying my queries, 

but i am not experienced but trying to grasp the tech. 

saw the example that u specified. but was bit confused seeing that.

i placed the command 

f:facet name=change
tc:command /
/f:facet

in the first tx:selectOneChoice/. when i select one of the item in the list, 
the page gets refreshed.

So where should i write my code that updates the values in the second 
tx:selectoneChoice/

think that would be done with the valueChangeListener method in the bean.

can u send me a sample java code that would update the values in the Listbox 
when a particular item is
 selected in the first.

and one more thing, 

when i use the 

f:facet name=change

tc:command /

/f:facet

the label for the tx:selectOneChoice/ is displayed in red as it does when we 
use required=true.

should we place immediate=true for this component.

thnx

Madan



- Original Message 
From: Bernd Bohmann [EMAIL PROTECTED]
To: MyFaces Discussion users@myfaces.apache.org
Sent: Saturday, 3 February, 2007 5:53:38 PM
Subject: Re: [Tobago] Problem with JSTL

Hello Madan,

use the

  f:facet name=change
 tc:command /
   /f:facet

for selectOneChoice

a working example you can find at:

http://svn.apache.org/viewvc/myfaces/tobago/trunk/tobago-tool/gendoc/src/main/webapp/screenshot/selectOneChoice.jsp?revision=496963view=markup

Bernd

madan chowdary wrote:
 ya bernd,
 
 thnx for the reply...
 
 its working fine now.
 
 I got one more doubt regarding tx:selectOneChoice/ .
 
 There are two list boxes, one of the list box depends on other.
 
 Say if i select car, the second list box should display list of cars 
 available.
 
 if i select bike, the second list box should display list of bikes available.
 
 Saw the onchange event for tx:selectOneChoice/, but dont know how to 
 proceed with Tobago.
 
 how can i achieve my task with this case ?
 

 Madan
 
 - Original Message 
 From: Bernd Bohmann [EMAIL PROTECTED]
 To: MyFaces Discussion users@myfaces.apache.org
 Sent: Saturday, 3 February, 2007 5:05:25 PM
 Subject: Re: [Tobago] Problem with JSTL
 
 Hello Madan,
 
 you can use the rendered attribute
 
 tc:in  rendered=#{somemangedbean.shipToLookup} /
 tc:selectOneChoice rendered=#{!somemangedbean.shipToLookup} /
 
 Bernd
 
 madan chowdary wrote:
 Hi bred,

 ya i did a couple of search on web but didn't find anything that would be 
 useful when doing some kind of conditional checking in JSP code which using 
 Tobago.

 The tc:out/ is placed just for debugging .

 The actual case is to display different components for different
 conditions.

 say if  shipToLookup is true  then a tc:in should be displayed else 
 tc:selectOneChoice/ must be displayed

 So thats the reason i was using JSTL.

 If not using JSTL, plz advice me how to proceed with the above case.

 a bit urgent for this now.

 Regards,
 Madan

 - Original Message 
 From: Bernd Bohmann [EMAIL PROTECTED]
 To: MyFaces Discussion users@myfaces.apache.org
 Sent: Saturday, 3 February, 2007 3:40:42 PM
 Subject: Re: [Tobago] Problem with JSTL

 Hello Madan,

 why you choose jstl?

 jstl and jsf doesn't work very well together.
 Please try a web search.

 Why you don't use this

 tc:out
 value=#{somemangedbean.shipToLookup}/


 Regards

 Bernd

 madan chowdary wrote:
 hi all,

 I resolved the problem by placing standards.jar and jstl.jar in my lib and 
 was able to use JSTL core tag.

 But was facing a issue when using conditional checking in my JSP.

 a part of my JSP looks like this

 tc:cell
   c:choose
 c:when test=${requestScope.checkout.shipToLookup}
tc:out value=ShipToLookup is enabled /
 /c:when
 c:otherwise
tc:out
 value=ShipToLookup is disabled /
 /c:otherwise
/c:choose 
 /tc:cell

 the getter for this shipToLookup is as such

 public boolean getShipToLookup() {
 return true;
 //return shipToLookup;
 }

 but always i get the output

Re: [Tobago] Problem with JSTL

2007-01-28 Thread Udo Schnurpfeil

Hello Madan,

seens this is not a Tobago but a JSTL question.

Do you have an implementation for the JSTL in your classpath? You need 
both: API + Impl.
You may use the apache implementation (standard.jar): See 
http://jakarta.apache.org/taglibs/

If using maven try to add:
dependency
groupIdtaglibs/groupId
artifactIdstandard/artifactId
version1.1.2/version
scoperuntime/scope
/dependency

Hope that helps

Udo

madan chowdary schrieb:

Hi all,

i was having problem with JSTL tag.

I want to display 20 text fields in each row.

Thought to use tc:forEach/, but saw that its deprecated in tlddocs.

So opted for c:forEach/.

I included jstl.jar in lib directory.

tried with both

%@ taglib uri=http://java.sun.com/jsp/jstl/core; preifx=c %

and

%@ taglib uri=http://java.sun.com/jstl/core; preifx=c %

But was getting error saying that the taglib is not specified in 
web.xml or either in the classpath.


tried with different versions of JSTL.But same error.

how to achieve my task using c:forEach/

thnx in regards,

Madan


Here’s a new way to find what you're looking for - Yahoo! Answers 
http://us.rd.yahoo.com/mail/in/yanswers/*http://in.answers.yahoo.com/