Re: how to make a custum error handling

2008-10-06 Thread Zied Hamdi
Hi Jan,

Sorry for the delay in my answer (I didn't connect to this mail for a moment
as I was working on my home site :-).  As far as I know about conversion and
validation I must throw specific jsf exceptions to be handled properly by
the framework: respectively ConversionException and ValidationException.
Since I want my business part of the app to be independent of the view
technology, I want to throw standard exceptions and handle all that stuff
in a unique specialized view layer. Another advantage of this approach is to
be able to change the way I react on a given exception: eg. I can have a
debug and a production exception handler that differ in their strategies.

You're absolutely right about taking a framework as it was designed to avoid
having to udate my code on each upgrade. But the work implied here for
upgrading is worth than having to adapt all my display-independent
exceptions to the framework. Another philosophy can say that I'll hope JSF 2
will be more extensible so I will stop to do specific upgrades from that
version ;-)

Thank you for your mail, it is always interesting to discuss and share idea
about architectures.
Kind Regrads,
Zied

2008/9/25 Jan-Kees van Andel [EMAIL PROTECTED]

 I don't understand why you would like to handle
 Converter/ValidatorExceptions? Those are handled by the JSF framework and
 automatically put into the FacesContext as FacesMessages. You can then just
 show them on your page using UIMessage(s). She only place where
 Business/SystemExceptions are thrown, is in an ActionListener, since that is
 your gateway to the other layers.

 If you really need to handle Converter/ValidatorExceptions, just put a
 PhaseListener before RENDER_RESPONSE and inspect the messages in your
 FacesContext. If it contains any ERROR or FATAL messages (you can use
 getMaximumSeverity), do something, otherwise do something else.

 I understand the MyFaces specific approach has advantages, like ease of
 use, but it's usually good to use standard mechanisms (if you can, in a
 reasonable way). It's also possible to just use a Servlet Filter or a custom
 FacesServlet that extends the standard FacesServlet to handle exceptions,
 but I wouldn't reccomend those two options.

 Regards,

 Jan-Kees


 2008/9/25 Zied Hamdi [EMAIL PROTECTED]

 Hi Leonardo and Jan,

 Sorry for the delay, I didn't have time to look at my mail these latter
 days.

 Thanks Leonardo a lot for your resource: it is exactly what I was
 searching for. This is not a standard JSF solution (so my expectations were
 right ;-)
 the part I was interested in is:

 !-- if you want to choose a different class for handling the exception - 
 the error-handler needs to include a method handleException(FacesContext fc, 
 Exception ex)--
   context-param


 param-nameorg.apache.myfaces.ERROR_HANDLER/param-name
 param-valuemy.project.ErrorHandler/param-value
   /context-param


 Thanks to you Jan also for your answer, your solution is perfect for
 action handling, unfortunately it doesn't cover Conversion and Validation
 phases.

 Best Regards,
 Zied

 Your answer
 2008/9/23 Jan-Kees van Andel [EMAIL PROTECTED]

 If you want application specific error handling, you can always create a
 custom ActionListener. That ActionListener is actually a decorator that
 decorates the real ActionListener with a try-catch block. All your calls
 to actions, go through that listener. In the catch, you can build any error
 handling mechanism you want.

 Just declare your class inside faces-config.xml, like this:
 application
   action-listener
 some.package.CustomActionListener
   /action-listener
 /application

 Your ActionListener must implement javax.faces.event.ActionListener.
 Implementing the class won't be difficult.

 One caveat, you may not place Exception throwing inside getters or
 setters anymore, only actions, since the custom listener only wraps those
 calls.

 Regards,

 Jan-Kees


 2008/9/23 Leonardo Uribe [EMAIL PROTECTED]



 On Tue, Sep 23, 2008 at 5:40 AM, Zied Hamdi [EMAIL PROTECTED]wrote:

 Hi all,

 Does the no answer to my mail mean there's no answer? :-)


 Do you seen http://wiki.apache.org/myfaces/Handling_Server_Errors   ?

 regards

 Leonardo Uribe



 Regards,
 Zied

 2008/9/22 Zied Hamdi [EMAIL PROTECTED]

 Hi all,

 I used to have in all my apps a J2ee like mecanism that defines two
 basic exceptions Business and System, where business messages include a 
 i18n
 message and system one lead to an unconditional output. In a central 
 place
 (eg. for struts it was the superclass of all actions), I organized my 
 output
 against the exception type and message key. That way in my app I never 
 had
 to to handle error presentation in my business logic (instead i was 
 throwing
 general or sometimes specialized exceptions and handling that later 
 (even in
 the application developement cycle)).

 Attemping to do the same with JSF I have a big problem there's no way
 to do it through standard JSF extentions, even more

Re: how to make a custum error handling

2008-09-25 Thread Zied Hamdi
Hi Leonardo and Jan,

Sorry for the delay, I didn't have time to look at my mail these latter
days.

Thanks Leonardo a lot for your resource: it is exactly what I was searching
for. This is not a standard JSF solution (so my expectations were right ;-)
the part I was interested in is:

!-- if you want to choose a different class for handling the
exception - the error-handler needs to include a method
handleException(FacesContext fc, Exception ex)--
  context-param
param-nameorg.apache.myfaces.ERROR_HANDLER/param-name
param-valuemy.project.ErrorHandler/param-value
  /context-param


Thanks to you Jan also for your answer, your solution is perfect for action
handling, unfortunately it doesn't cover Conversion and Validation phases.

Best Regards,
Zied

Your answer
2008/9/23 Jan-Kees van Andel [EMAIL PROTECTED]

 If you want application specific error handling, you can always create a
 custom ActionListener. That ActionListener is actually a decorator that
 decorates the real ActionListener with a try-catch block. All your calls
 to actions, go through that listener. In the catch, you can build any error
 handling mechanism you want.

 Just declare your class inside faces-config.xml, like this:
 application
   action-listener
 some.package.CustomActionListener
   /action-listener
 /application

 Your ActionListener must implement javax.faces.event.ActionListener.
 Implementing the class won't be difficult.

 One caveat, you may not place Exception throwing inside getters or setters
 anymore, only actions, since the custom listener only wraps those calls.

 Regards,

 Jan-Kees


 2008/9/23 Leonardo Uribe [EMAIL PROTECTED]



 On Tue, Sep 23, 2008 at 5:40 AM, Zied Hamdi [EMAIL PROTECTED] wrote:

 Hi all,

 Does the no answer to my mail mean there's no answer? :-)


 Do you seen http://wiki.apache.org/myfaces/Handling_Server_Errors   ?

 regards

 Leonardo Uribe



 Regards,
 Zied

 2008/9/22 Zied Hamdi [EMAIL PROTECTED]

 Hi all,

 I used to have in all my apps a J2ee like mecanism that defines two
 basic exceptions Business and System, where business messages include a 
 i18n
 message and system one lead to an unconditional output. In a central place
 (eg. for struts it was the superclass of all actions), I organized my 
 output
 against the exception type and message key. That way in my app I never had
 to to handle error presentation in my business logic (instead i was 
 throwing
 general or sometimes specialized exceptions and handling that later (even 
 in
 the application developement cycle)).

 Attemping to do the same with JSF I have a big problem there's no way to
 do it through standard JSF extentions, even more, the class I have to
 override depends on the specific implementation (it is not in the
 jsf-api.jar) eg. for the mojarra impl I have to overrride
 com.sun.faces.lifecycle.LifecycleImpl's execute method:

 public void execute(FacesContext context) throws FacesException {

 if (context == null) {
 throw new NullPointerException
 (MessageUtils.getExceptionMessageString
  (MessageUtils.NULL_PARAMETERS_ERROR_MESSAGE_ID,
 context));
 }

 if (LOGGER.isLoggable(Level.FINE)) {
 LOGGER.fine(execute( + context + ));
 }

 for (int i = 1, len = phases.length -1 ; i  len; i++) { // Skip
 ANY_PHASE placeholder

 if (context.getRenderResponse() ||
 context.getResponseComplete()) {
 break;
 }

 phases[i].doPhase(context, this, listeners.listIterator());

 }

 }

 by surrounding it with a try-catch block that delegates exception
 handling to the class responsible for that (to add FacesMessage(s)).

 Then I have to rely on the classloader to find my class before the one
 in the jar with the same name. I think this is also transgrating the sun
 licence that allows me to use the classes as is.

 The procedure is similar with the myFaces implementation with the
 exception that the Apache licence lets me do this manipulation legally. 
 (But
 I'm using JBoss wich bundles the RI so there's also work to do to switch
 implementations)

 All this is to ask if anoyone knows about a less acrobatic way to have
 the needed behavior. Notice that I want to use the same exceptions for
 validators and converters also that's why I intercept the overall phasis
 cycle rather than the com.sun.faces.lifecycle.InvokeApplicationPhase class.

 Also note that javax.faces.validator.DoubleRangeValidator (as an
 example) uses this same schema in conjunction with the
 javax.faces.component.UIInput that expects this type of exceptions and
 handles it specifically. I want to expand this schema to the whole
 application.


 Your help is very appreciated, I really don't want to get out of the
 standard procedure.

 Kind Regards,
 Zied

 --
 Zied Hamdi
 www.into-i.fr
 (previously in 2003)
 zatreex.sf.net




 --
 Zied Hamdi
 www.into-i.fr
 (previously

Re: how to make a custum error handling

2008-09-23 Thread Zied Hamdi
Hi all,

Does the no answer to my mail mean there's no answer? :-)

Regards,
Zied

2008/9/22 Zied Hamdi [EMAIL PROTECTED]

 Hi all,

 I used to have in all my apps a J2ee like mecanism that defines two basic
 exceptions Business and System, where business messages include a i18n
 message and system one lead to an unconditional output. In a central place
 (eg. for struts it was the superclass of all actions), I organized my output
 against the exception type and message key. That way in my app I never had
 to to handle error presentation in my business logic (instead i was throwing
 general or sometimes specialized exceptions and handling that later (even in
 the application developement cycle)).

 Attemping to do the same with JSF I have a big problem there's no way to do
 it through standard JSF extentions, even more, the class I have to override
 depends on the specific implementation (it is not in the jsf-api.jar) eg.
 for the mojarra impl I have to overrride
 com.sun.faces.lifecycle.LifecycleImpl's execute method:

 public void execute(FacesContext context) throws FacesException {

 if (context == null) {
 throw new NullPointerException
 (MessageUtils.getExceptionMessageString
  (MessageUtils.NULL_PARAMETERS_ERROR_MESSAGE_ID,
 context));
 }

 if (LOGGER.isLoggable(Level.FINE)) {
 LOGGER.fine(execute( + context + ));
 }

 for (int i = 1, len = phases.length -1 ; i  len; i++) { // Skip
 ANY_PHASE placeholder

 if (context.getRenderResponse() ||
 context.getResponseComplete()) {
 break;
 }

 phases[i].doPhase(context, this, listeners.listIterator());

 }

 }

 by surrounding it with a try-catch block that delegates exception handling
 to the class responsible for that (to add FacesMessage(s)).

 Then I have to rely on the classloader to find my class before the one in
 the jar with the same name. I think this is also transgrating the sun
 licence that allows me to use the classes as is.

 The procedure is similar with the myFaces implementation with the exception
 that the Apache licence lets me do this manipulation legally. (But I'm using
 JBoss wich bundles the RI so there's also work to do to switch
 implementations)

 All this is to ask if anoyone knows about a less acrobatic way to have the
 needed behavior. Notice that I want to use the same exceptions for
 validators and converters also that's why I intercept the overall phasis
 cycle rather than the com.sun.faces.lifecycle.InvokeApplicationPhase class.

 Also note that javax.faces.validator.DoubleRangeValidator (as an example)
 uses this same schema in conjunction with the javax.faces.component.UIInput
 that expects this type of exceptions and handles it specifically. I want to
 expand this schema to the whole application.


 Your help is very appreciated, I really don't want to get out of the
 standard procedure.

 Kind Regards,
 Zied

 --
 Zied Hamdi
 www.into-i.fr
 (previously in 2003)
 zatreex.sf.net




-- 
Zied Hamdi
www.into-i.fr
(previously in 2003)
zatreex.sf.net


Re: myFaces, jdk6, jboss4.2.3

2008-09-23 Thread Zied Hamdi
(FaceletViewHandler.java:457)
at

 oracle.adfinternal.view.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:159)
at
 org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:384)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:138)
... 19 more
 09:39:06,911 INFO  [Server] Runtime shutdown hook called, forceHalt: true
 --
 View this message in context:
 http://www.nabble.com/myFaces%2C-jdk6%2C-jboss4.2.3-tp19611223p19611223.html
 Sent from the MyFaces - Users mailing list archive at Nabble.com.




-- 
Zied Hamdi
www.into-i.fr
(previously in 2003)
zatreex.sf.net


how to make a custum error handling

2008-09-22 Thread Zied Hamdi
Hi all,

I used to have in all my apps a J2ee like mecanism that defines two basic
exceptions Business and System, where business messages include a i18n
message and system one lead to an unconditional output. In a central place
(eg. for struts it was the superclass of all actions), I organized my output
against the exception type and message key. That way in my app I never had
to to handle error presentation in my business logic (instead i was throwing
general or sometimes specialized exceptions and handling that later (even in
the application developement cycle)).

Attemping to do the same with JSF I have a big problem there's no way to do
it through standard JSF extentions, even more, the class I have to override
depends on the specific implementation (it is not in the jsf-api.jar) eg.
for the mojarra impl I have to overrride
com.sun.faces.lifecycle.LifecycleImpl's execute method:

public void execute(FacesContext context) throws FacesException {

if (context == null) {
throw new NullPointerException
(MessageUtils.getExceptionMessageString
 (MessageUtils.NULL_PARAMETERS_ERROR_MESSAGE_ID,
context));
}

if (LOGGER.isLoggable(Level.FINE)) {
LOGGER.fine(execute( + context + ));
}

for (int i = 1, len = phases.length -1 ; i  len; i++) { // Skip
ANY_PHASE placeholder

if (context.getRenderResponse() ||
context.getResponseComplete()) {
break;
}

phases[i].doPhase(context, this, listeners.listIterator());

}

}

by surrounding it with a try-catch block that delegates exception handling
to the class responsible for that (to add FacesMessage(s)).

Then I have to rely on the classloader to find my class before the one in
the jar with the same name. I think this is also transgrating the sun
licence that allows me to use the classes as is.

The procedure is similar with the myFaces implementation with the exception
that the Apache licence lets me do this manipulation legally. (But I'm using
JBoss wich bundles the RI so there's also work to do to switch
implementations)

All this is to ask if anoyone knows about a less acrobatic way to have the
needed behavior. Notice that I want to use the same exceptions for
validators and converters also that's why I intercept the overall phasis
cycle rather than the com.sun.faces.lifecycle.InvokeApplicationPhase class.

Also note that javax.faces.validator.DoubleRangeValidator (as an example)
uses this same schema in conjunction with the javax.faces.component.UIInput
that expects this type of exceptions and handles it specifically. I want to
expand this schema to the whole application.


Your help is very appreciated, I really don't want to get out of the
standard procedure.

Kind Regards,
Zied

-- 
Zied Hamdi
www.into-i.fr
(previously in 2003)
zatreex.sf.net


Re: is tomahawk dying?

2008-09-11 Thread Zied Hamdi
Hi Hazem and Felix,

OK Tomahawk is alive!! and sorry for the monstrous thing I said ;-).

But there's no download link in its dedicated pages (we must search it :-)),
nightly builds are 8 months old (this must be because build procedure fails
somewhere I understand it completely). For an extern eye, there's no visible
activity: I had to go through the sandbox wiki link to fall on the
unofficial site that has in its recent changes tab some news (in a form of
log files) about tomahawk.

I think the message is clear, tomahawk is for experts only :-p. No I'm
joking, I'm really happy the show goes on, I just think I had to notify you
about my extern eye view.

Regards,
Zied Hamdi

2008/9/10 Hazem Saleh [EMAIL PROTECTED]

 There will be a big cake ll.


 On Wed, Sep 10, 2008 at 6:51 PM, Felix Becker [EMAIL PROTECTED]wrote:

 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1

 Hi,

 Hazem Saleh wrote:
 
  So Tomahawk is still alive (never say die :)).
 
 Jeah, you'll be dead and Tomahawk will be alive and there will be
 cake after a new release..


 -BEGIN PGP SIGNATURE-
 Version: GnuPG v1.4.9 (GNU/Linux)
 Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

 iEYEARECAAYFAkjH+yEACgkQ4EtAe+cAYIDkEwCbBSA6oPz1XgMSKBFH/HqtS3yL
 sfQAnjLxHaLpjkwrmVN2fjUI/dSNvPIR
 =XaVS
 -END PGP SIGNATURE-




 --
 Hazem Ahmed Saleh Ahmed

 Web blog: http://www.jroller.com/page/HazemBlog

 [Web 2.0] GMaps Integration with JSF + Apache Tomahawk + JBoss a4j:
 http://code.google.com/p/gmaps4jsf/




-- 
Zied Hamdi
www.into-i.fr
(previously in 2003)
zatreex.sf.net


[tobago] actionListener on tab selection

2008-09-11 Thread Zied Hamdi
Hi all,

I need to load data on a tab click (having the switchMode=reloadTab or
reloadPage), I notice there is no action, actionListener attributes is
there a way to be notified on the server about a tab change. The other
solution I see is to check on every page load the state of the tabGroup, but
this is not an event approach...

I've found tabChangeListener but it doesn't respond to my need as I need to
do a method binding on my current controller (wich is passsed as an include
parameter)...

Regrads,
Zied

-- 
Zied Hamdi
www.into-i.fr
(previously in 2003)
zatreex.sf.net


Re: [tobago] actionListener on tab selection

2008-09-11 Thread Zied Hamdi
By the way,

Did anyone try to use a4j with tobago?

Any info is very welcome.

Regards,
Zied

2008/9/11 Zied Hamdi [EMAIL PROTECTED]

 Hi all,

 I need to load data on a tab click (having the switchMode=reloadTab or
 reloadPage), I notice there is no action, actionListener attributes is
 there a way to be notified on the server about a tab change. The other
 solution I see is to check on every page load the state of the tabGroup, but
 this is not an event approach...

 I've found tabChangeListener but it doesn't respond to my need as I need to
 do a method binding on my current controller (wich is passsed as an include
 parameter)...

 Regrads,
 Zied

 --
 Zied Hamdi
 www.into-i.fr
 (previously in 2003)
 zatreex.sf.net




-- 
Zied Hamdi
www.into-i.fr
(previously in 2003)
zatreex.sf.net


Re: [tobago] actionListener on tab selection

2008-09-11 Thread Zied Hamdi
Thanks Volker.

The question is : will #{controller} be resolved against eh local context in
which tabChangeListener is inserted?

In my case I have the same xhtml snippet two times, every one is included
with a ui:include ... ui:param name=controller
value=#{controller.*tabHandler1
or tabHandler2*} ...

Will the created method binding search for controller in the request scope
or as if it was inside the tag...

Another question may cancel the first one: when do you think the version 1.1
will be available as a stable release or release candidate (I think I've
tried to upgrade to the nightly build without success..)?

Regards,
Zied

2008/9/11 Volker Weber [EMAIL PROTECTED]

 Hi Zied,


 2008/9/11 Zied Hamdi [EMAIL PROTECTED]:
  Hi all,
 
  I need to load data on a tab click (having the switchMode=reloadTab or
  reloadPage), I notice there is no action, actionListener attributes is
  there a way to be notified on the server about a tab change. The other
  solution I see is to check on every page load the state of the tabGroup,
 but
  this is not an event approach...
 
  I've found tabChangeListener but it doesn't respond to my need as I need
 to
  do a method binding on my current controller (wich is passsed as an
 include
  parameter)...

 You can create and invoke a methodBinding in the tabChangeListener:
  Application.createMethodBinding(#{controller.method},
 ParameterClasses[]).invoke(facesContext, parmeters[])

 In tobago-1.1 the tabChangeListener is an actionListener.

 Regards,
Volker


 
  Regrads,
  Zied
 
  --
  Zied Hamdi
  www.into-i.fr
  (previously in 2003)
  zatreex.sf.net
 



 --
 inexso - information exchange solutions GmbH
 Bismarckstraße 13 | 26122 Oldenburg
 Tel.: +49 441 4082 356 |
 FAX: +49 441 4082 355 | www.inexso.de




-- 
Zied Hamdi
www.into-i.fr
(previously in 2003)
zatreex.sf.net


is tomahawk dying?

2008-09-10 Thread Zied Hamdi
Hi MyFaces community,

I noticed that on the nightly builds page, the last tomahawk version is 8
months old: 08-Jan-2008 04:31http://people.apache.org/builds/myfaces/nightly/

Besides the fact the mails marked with [tomahawk] in subject are never
answered by MyFaces guys.

At the same time, I have found this page
http://wiki.apache.org/myfaces/RecentChanges that shows an activity until
today (They annouce the release of the 1.1.7 version but it's not on the
downloa page)

I need to use the 1.1.7 release but I have some bugs (which is natural). I'd
like to know if I can count on a release in a next future or not.

Any info is very welcome.

Kind regards,
-- 
Zied Hamdi
www.into-i.fr
(previously in 2003)
zatreex.sf.net


Re: [tobago] is chrome in the plans

2008-09-05 Thread Zied Hamdi
Hi Volker,

The menu bar is displayed immediately (not as I mentioned in previous mails
: 2 secs for firefox and 20 sec for ie). The navigation is globally very
fast: it seams they interpret the page in a completely different way than
the other browsers.

I'd like to do the porting but I unfortunately don't have time at all. Maybe
in a few months when I'll start to sell my product (if no one has already
began).

Regards,
Zied

2008/9/5 Volker Weber [EMAIL PROTECTED]

 Hi Zied,

 2008/9/5 Zied Hamdi [EMAIL PROTECTED]:
  Hi,
 
  I was very excited to test the google browser Chrome and see how fast
 it
  is, the only problem is a layout space allocation with tobago (see
 image).
 
  I know this is a new product, the question is only: is there a work being
  done on Chrome integration?

 Afaik not, and as long as there is no linux version of chrome i can't
 even take a look on it.

 Is the menubar working? When developing this component i wasn't able
 to make it work on opera and therefor
 we decided to concentrate on FF and IE.

 If you, or someone else, is willing to jump in i could give startup
 support pointing where to look and what to do.
 Supporting a additional Browser should not be a problem as long as
 just the layout has errors like in your screenshot.

 Regards,
  Volker

 
  Thanks and regards,
  Zied
 
  --
  Zied Hamdi
  www.into-i.fr
  (previously in 2003)
  zatreex.sf.net
 



 --
 inexso - information exchange solutions GmbH
 Bismarckstraße 13 | 26122 Oldenburg
 Tel.: +49 441 4082 356 |
 FAX: +49 441 4082 355 | www.inexso.de




-- 
Zied Hamdi
www.into-i.fr
(previously in 2003)
zatreex.sf.net


[tobago] parsing warning by org.apache.myfaces.renderkit.html.util.ReducedHTMLParser

2008-09-04 Thread Zied Hamdi
 Hi,

I have the following warning many times in logs:

12:43:45,671 INFO [STDOUT] 2008-09-04 12:43:45,671 [http-127.0.0.1-8080-1]
WARN org.apache.myfaces.renderkit.html.util.ReducedHTMLParser.parse(569) -
Invalid tag found: unexpected input while looking for attr name or '/' at
line 208. Surroundings: '\ href=\#\ onfocus=\tobago'.

and he's right: here is a snippet of the output page:
a class=\tobago-menuBar-item-span tobago-menuBar-item-span-enabled
tobago-menuBar-item-span-top\ href=\#\ onfocus=\tobagoMenuFocus(event)\
onblur=\tobagoMenuBlur(event)\ ...
Is there a way to remove the java escape characters before double quotes
from the output (if that is the problem).

Regards,
Zied

-- 
Zied Hamdi
www.into-i.fr
(previously in 2003)
zatreex.sf.net


[tobago] [tomahawk] lost compatibility when passing from tobago 1.0.17 to 1.0.18

2008-09-04 Thread Zied Hamdi
Hi,

I attempted to upgrade to the latest Tobago version (I had the 1.0.17) and
all places where I had a t:schedule are now empty.

I have no errors nor in my browser nor in the console...

Any ideas will help, thanks

Regards,
-- 
Zied Hamdi
www.into-i.fr
(previously in 2003)
zatreex.sf.net


Re: [tobago] parsing warning by org.apache.myfaces.renderkit.html.util.ReducedHTMLParser

2008-09-04 Thread Zied Hamdi
Hi Volker :-),

Do I have to report this to MyFaces core?

Regards,
Zied

2008/9/4 Volker Weber [EMAIL PROTECTED]

 Hi Zied,

 2008/9/4 Zied Hamdi [EMAIL PROTECTED]:
  Hi,
 
  I have the following warning many times in logs:
 
  12:43:45,671 INFO [STDOUT] 2008-09-04 12:43:45,671
 [http-127.0.0.1-8080-1]
  WARN org.apache.myfaces.renderkit.html.util.ReducedHTMLParser.parse(569)
 -
  Invalid tag found: unexpected input while looking for attr name or '/'
 at
  line 208. Surroundings: '\ href=\#\ onfocus=\tobago'.
 
  and he's right: here is a snippet of the output page:
  a class=\tobago-menuBar-item-span tobago-menuBar-item-span-enabled
  tobago-menuBar-item-span-top\ href=\#\
 onfocus=\tobagoMenuFocus(event)\
  onblur=\tobagoMenuBlur(event)\ ...

 this looks like a part of the javascript output to define a menu item.


  Is there a way to remove the java escape characters before double quotes
  from the output (if that is the problem).

 no!

 Seems there is a problem in the  ReducedHTMLParser: javascript should
 not be parsed.


 Regards,
Volker

 
  Regards,
  Zied
  --
  Zied Hamdi
  www.into-i.fr
  (previously in 2003)
  zatreex.sf.net
 



 --
 inexso - information exchange solutions GmbH
 Bismarckstraße 13 | 26122 Oldenburg
 Tel.: +49 441 4082 356 |
 FAX: +49 441 4082 355 | www.inexso.de




-- 
Zied Hamdi
www.into-i.fr
(previously in 2003)
zatreex.sf.net


[tomahawk][tobago] js error on mouse move

2008-08-28 Thread Zied Hamdi
Hi,

I have the following js error on mouse move:
event is not defined
http://localhost:8080/IntoServicesWeb/faces/myFacesExtensionResource/org.apache.myfaces.renderkit.html.util.MyFacesResourceLoader/12199126/schedule.HtmlSchedule/javascript/domLib.js
Line 535

This happens on any mouse move on the page, so I cumulate thousands of
occurences of the error on each page. Is there a known bugfix or workaround
with that?

Here is my page:
!--
  schedule : ScheduleManager
  controller : controller.selectEntryCmd
--
tc:panel
xmlns=http://www.w3.org/1999/xhtml;
xmlns:t=http://myfaces.apache.org/tomahawk;
xmlns:tc=http://myfaces.apache.org/tobago/component;
xmlns:tx=http://myfaces.apache.org/tobago/extension;
xmlns:h=http://java.sun.com/jsf/html;
xmlns:f=http://java.sun.com/jsf/core;
id=schedulePanel

f:facet name=layout
tc:gridLayout rows=fixed;* /
/f:facet

tc:panel
f:facet name=layout
tc:gridLayout
marginRight=0px
marginLeft=10px
columns=7*;9* /
/f:facet

tc:panel
f:facet name=layout
tc:gridLayout
columns=18px;18px;140px;fixed
marginRight=15px /
/f:facet

tc:link
image=icons/e_back.gif
action=#{schedule.back}
tc:attribute
name=renderedPartially
value=schedulePanel /
/tc:link
tc:link
image=icons/e_forward.gif
action=#{schedule.next}
tc:attribute
name=renderedPartially
value=schedulePanel /
/tc:link
tc:label value=#{schedule.currentState} /
tc:link
image=icons/elcl16/select_next.gif
action=#{schedule.today}
tip=#{i18n.today}
tc:attribute
name=renderedPartially
value=schedulePanel /
/tc:link
/tc:panel

tc:selectOneRadio
value=#{schedule.mode}
inline=true
id=selectMode
tc:selectItems value=#{schedule.modes} /
f:facet name=click
tc:command
tc:attribute
name=renderedPartially
value=schedulePanel /
/tc:command
/f:facet
/tc:selectOneRadio
/tc:panel

t:schedule
id=schedule
value=#{schedule.model}
action=#{controller.selectEntryCmd}
rendered=true
tooltip=true
entryRenderer=#{schedule.renderer}
headerDateFormat=EEE dd
hourNotation=24
splitWeekend=false /

/tc:panel

And here is an example of how I invoke it:

tc:tab id=personWorkTasks label=#{i18n.personWorkTasks}
rendered=#{!personCtrl.transientPerson}
ui:include src=/contract/workSchedule.xhtml
ui:param name=schedule value=#{personCtrl.scheduleModel} /
ui:param name=controller value=#{personCtrl} /
/ui:include

/tc:tab

Best regards,
Zied

-- 
Zied Hamdi
www.into-i.fr
(previously in 2003)
zatreex.sf.net


[tobago] something makes my menus need near 20s to reload

2008-08-26 Thread Zied Hamdi
Hi all (especially Volker and Bernd whom I didn't report anything for a
while ;-)

I had an intervention for a customer these last 4 months. For that Time my
computer continued to live as a simple home computer (installing
uninstalling and trying softs). Now that I'm back to my app I notice the
tobago menus take nearly 20 seconds to reloads: for all that time the whole
browser hangs on. I tried to begin on a clean environment by rebuilding on a
new developement envirenoment but the problem persists: my menu isn't really
complex: it has some 5 root level items with one submenu for each. I'd like
to know what is the reason for this problem because if I encouter the same
on a custumer computer I will have no answer.

If anyone experience the same problems please let me know.

Thanks and regards,
-- 
Zied Hamdi
www.into-i.fr
(previously in 2003)
zatreex.sf.net


Re: [tobago] something makes my menus need near 20s to reload

2008-08-26 Thread Zied Hamdi
Sorry, I forgot to say that upgrading to the last stable build doesn't fix
the problem.

Regards
Zied

2008/8/26 Zied Hamdi [EMAIL PROTECTED]

  Hi all (especially Volker and Bernd whom I didn't report anything for a
 while ;-)

 I had an intervention for a customer these last 4 months. For that Time my
 computer continued to live as a simple home computer (installing
 uninstalling and trying softs). Now that I'm back to my app I notice the
 tobago menus take nearly 20 seconds to reloads: for all that time the whole
 browser hangs on. I tried to begin on a clean environment by rebuilding on a
 new developement envirenoment but the problem persists: my menu isn't really
 complex: it has some 5 root level items with one submenu for each. I'd like
 to know what is the reason for this problem because if I encouter the same
 on a custumer computer I will have no answer.

 If anyone experience the same problems please let me know.

 Thanks and regards,
 --
 Zied Hamdi
 www.into-i.fr
 (previously in 2003)
 zatreex.sf.net




-- 
Zied Hamdi
www.into-i.fr
(previously in 2003)
zatreex.sf.net


Re: [tobago] something makes my menus need near 20s to reload

2008-08-26 Thread Zied Hamdi
How are you Bernd,

I think this is not related to the code of the page but to sth in the
environement. I've joined my menu page, 4 months ago exactly the same app
was working fine (it was on the same server, same dev tools etc...).

Regards,
Zied

?xml version=1.0 encoding=UTF-8?
tc:menuBar xmlns=http://www.w3.org/1999/xhtml; xmlns:jsp=
http://java.sun.com/JSP/Page; xmlns:tc=
http://myfaces.apache.org/tobago/component;
 xmlns:tx=http://myfaces.apache.org/tobago/extension; xmlns:ui=
http://java.sun.com/jsf/facelets; xmlns:h=http://java.sun.com/jsf/html;
 xmlns:f=http://java.sun.com/jsf/core;
 tc:menu id=clients label=Clients accessKey=C
  tc:menuItem label=liste accessKey=L
actionListener=#{personCtrl.list} action=personList immediate=true
   f:attribute name=type value=Client /
  /tc:menuItem
 /tc:menu
 tc:menu id=intervenants label=Intervenants accessKey=I
  tc:menuItem label=liste accessKey=L
actionListener=#{personCtrl.list} action=personList immediate=true
   f:attribute name=type value=Intervenant /
  /tc:menuItem
 /tc:menu
 tc:menu id=commercials label=Commerciaux accessKey=I
  tc:menuItem label=liste accessKey=L
actionListener=#{personCtrl.list} action=personList immediate=true
   f:attribute name=type value=Commercial /
  /tc:menuItem
 /tc:menu
 tc:menu id=contrats label=Contrats accessKey=F
  tc:menuItem label=Liste accessKey=R action=#{contractCtrl.list}/
 /tc:menu
 tc:menu id=tasks label=#{i18n.tasks} accessKey=F
  tc:menuItem label=Liste accessKey=R action=taskList/
 /tc:menu
 tc:menu id=configuration label=Configuration accessKey=F
  tc:menuItem label=#{i18n.resolution} accessKey=R /
  tc:menu label=themes accessKey=S
   tx:menuRadio value=#{configController.theme}
f:selectItems value=#{configController.themeMenus} /
   /tx:menuRadio
  /tc:menu
 /tc:menu
/tc:menuBar

2008/8/26 Bernd Bohmann [EMAIL PROTECTED]

 Hello Zied,

 can you send an example page, please?

 Regards

 Bernd

 Zied Hamdi schrieb:
   Sorry, I forgot to say that upgrading to the last stable build doesn't
 fix
  the problem.
 
  Regards
  Zied
 
  2008/8/26 Zied Hamdi [EMAIL PROTECTED]
 
   Hi all (especially Volker and Bernd whom I didn't report anything for a
  while ;-)
 
  I had an intervention for a customer these last 4 months. For that Time
 my
  computer continued to live as a simple home computer (installing
  uninstalling and trying softs). Now that I'm back to my app I notice the
  tobago menus take nearly 20 seconds to reloads: for all that time the
 whole
  browser hangs on. I tried to begin on a clean environment by rebuilding
 on a
  new developement envirenoment but the problem persists: my menu isn't
 really
  complex: it has some 5 root level items with one submenu for each. I'd
 like
  to know what is the reason for this problem because if I encouter the
 same
  on a custumer computer I will have no answer.
 
  If anyone experience the same problems please let me know.
 
  Thanks and regards,
  --
  Zied Hamdi
  www.into-i.fr
  (previously in 2003)
  zatreex.sf.net
 
 
 
 




-- 
Zied Hamdi
www.into-i.fr
(previously in 2003)
zatreex.sf.net


menu.xhtml
Description: application/xhtml


Re: [tobago] something makes my menus need near 20s to reload

2008-08-26 Thread Zied Hamdi
Hi again,

I just notice it is really faster on firefox 2 (than on ie 7). The delay is
visible but a lot smaller (2 secs insted of 20). So now I'm confused because
I don't remember if I was using ie or firefox 4 months ago...

I know that installing some programs like firebug has known performance
issues on gmail. Maybe the scripts of tobago don't like one of my programs
on ie (spybot, avast, or else).

If anyone has noticed a comparable result please notify ;-).

Regards,
Zied

2008/8/26 Zied Hamdi [EMAIL PROTECTED]

  How are you Bernd,

 I think this is not related to the code of the page but to sth in the
 environement. I've joined my menu page, 4 months ago exactly the same app
 was working fine (it was on the same server, same dev tools etc...).

 Regards,
 Zied

 ?xml version=1.0 encoding=UTF-8?
 tc:menuBar xmlns=http://www.w3.org/1999/xhtml; xmlns:jsp=
 http://java.sun.com/JSP/Page; xmlns:tc=
 http://myfaces.apache.org/tobago/component;
  xmlns:tx=http://myfaces.apache.org/tobago/extension; xmlns:ui=
 http://java.sun.com/jsf/facelets; xmlns:h=http://java.sun.com/jsf/html;
  xmlns:f=http://java.sun.com/jsf/core;
  tc:menu id=clients label=Clients accessKey=C
   tc:menuItem label=liste accessKey=L
 actionListener=#{personCtrl.list} action=personList immediate=true
f:attribute name=type value=Client /
   /tc:menuItem
  /tc:menu
  tc:menu id=intervenants label=Intervenants accessKey=I
   tc:menuItem label=liste accessKey=L
 actionListener=#{personCtrl.list} action=personList immediate=true
f:attribute name=type value=Intervenant /
   /tc:menuItem
  /tc:menu
  tc:menu id=commercials label=Commerciaux accessKey=I
   tc:menuItem label=liste accessKey=L
 actionListener=#{personCtrl.list} action=personList immediate=true
f:attribute name=type value=Commercial /
   /tc:menuItem
  /tc:menu
  tc:menu id=contrats label=Contrats accessKey=F
   tc:menuItem label=Liste accessKey=R action=#{contractCtrl.list}/
  /tc:menu
  tc:menu id=tasks label=#{i18n.tasks} accessKey=F
   tc:menuItem label=Liste accessKey=R action=taskList/
  /tc:menu
  tc:menu id=configuration label=Configuration accessKey=F
   tc:menuItem label=#{i18n.resolution} accessKey=R /
   tc:menu label=themes accessKey=S
tx:menuRadio value=#{configController.theme}
 f:selectItems value=#{configController.themeMenus} /
/tx:menuRadio
   /tc:menu
  /tc:menu
 /tc:menuBar

 2008/8/26 Bernd Bohmann [EMAIL PROTECTED]

 Hello Zied,

 can you send an example page, please?

 Regards

 Bernd

 Zied Hamdi schrieb:
   Sorry, I forgot to say that upgrading to the last stable build doesn't
 fix
  the problem.
 
  Regards
  Zied
 
  2008/8/26 Zied Hamdi [EMAIL PROTECTED]
 
   Hi all (especially Volker and Bernd whom I didn't report anything for
 a
  while ;-)
 
  I had an intervention for a customer these last 4 months. For that Time
 my
  computer continued to live as a simple home computer (installing
  uninstalling and trying softs). Now that I'm back to my app I notice
 the
  tobago menus take nearly 20 seconds to reloads: for all that time the
 whole
  browser hangs on. I tried to begin on a clean environment by rebuilding
 on a
  new developement envirenoment but the problem persists: my menu isn't
 really
  complex: it has some 5 root level items with one submenu for each. I'd
 like
  to know what is the reason for this problem because if I encouter the
 same
  on a custumer computer I will have no answer.
 
  If anyone experience the same problems please let me know.
 
  Thanks and regards,
  --
  Zied Hamdi
  www.into-i.fr
  (previously in 2003)
  zatreex.sf.net
 
 
 
 




 --
 Zied Hamdi
 www.into-i.fr
 (previously in 2003)
 zatreex.sf.net




-- 
Zied Hamdi
www.into-i.fr
(previously in 2003)
zatreex.sf.net


Re: [tobago] something makes my menus need near 20s to reload

2008-08-26 Thread Zied Hamdi
Hi,

Maybe this doesn't have to do with the delay but I have this error on each
mouse move:

 domLib.js (line 535)
 event is not defined
 domLib_getEventPosition(mousemove clientX=0, clientY=0)domLib.js (line 535)
onmousemove(mousemove clientX=0, clientY=0)domTT.js (line 113)
 if(event.type != 'mousemove')

This is maybe due to the fact I'm using the tomahawk schedule tag inside
tobago panels...

If this doesn't sound familiar forgetabout it :-)

Regards,
Zied
2008/8/26 Zied Hamdi [EMAIL PROTECTED]

  Hi again,

 I just notice it is really faster on firefox 2 (than on ie 7). The delay is
 visible but a lot smaller (2 secs insted of 20). So now I'm confused because
 I don't remember if I was using ie or firefox 4 months ago...

 I know that installing some programs like firebug has known performance
 issues on gmail. Maybe the scripts of tobago don't like one of my programs
 on ie (spybot, avast, or else).

 If anyone has noticed a comparable result please notify ;-).

 Regards,
 Zied

 2008/8/26 Zied Hamdi [EMAIL PROTECTED]

  How are you Bernd,

 I think this is not related to the code of the page but to sth in the
 environement. I've joined my menu page, 4 months ago exactly the same app
 was working fine (it was on the same server, same dev tools etc...).

 Regards,
 Zied

 ?xml version=1.0 encoding=UTF-8?
 tc:menuBar xmlns=http://www.w3.org/1999/xhtml; xmlns:jsp=
 http://java.sun.com/JSP/Page; xmlns:tc=
 http://myfaces.apache.org/tobago/component;
  xmlns:tx=http://myfaces.apache.org/tobago/extension; xmlns:ui=
 http://java.sun.com/jsf/facelets; xmlns:h=http://java.sun.com/jsf/html;
  xmlns:f=http://java.sun.com/jsf/core;
  tc:menu id=clients label=Clients accessKey=C
   tc:menuItem label=liste accessKey=L
 actionListener=#{personCtrl.list} action=personList immediate=true
f:attribute name=type value=Client /
   /tc:menuItem
  /tc:menu
  tc:menu id=intervenants label=Intervenants accessKey=I
   tc:menuItem label=liste accessKey=L
 actionListener=#{personCtrl.list} action=personList immediate=true
f:attribute name=type value=Intervenant /
   /tc:menuItem
  /tc:menu
  tc:menu id=commercials label=Commerciaux accessKey=I
   tc:menuItem label=liste accessKey=L
 actionListener=#{personCtrl.list} action=personList immediate=true
f:attribute name=type value=Commercial /
   /tc:menuItem
  /tc:menu
  tc:menu id=contrats label=Contrats accessKey=F
   tc:menuItem label=Liste accessKey=R action=#{contractCtrl.list}/
  /tc:menu
  tc:menu id=tasks label=#{i18n.tasks} accessKey=F
   tc:menuItem label=Liste accessKey=R action=taskList/
  /tc:menu
  tc:menu id=configuration label=Configuration accessKey=F
   tc:menuItem label=#{i18n.resolution} accessKey=R /
   tc:menu label=themes accessKey=S
tx:menuRadio value=#{configController.theme}
 f:selectItems value=#{configController.themeMenus} /
/tx:menuRadio
   /tc:menu
  /tc:menu
 /tc:menuBar

 2008/8/26 Bernd Bohmann [EMAIL PROTECTED]

 Hello Zied,

 can you send an example page, please?

 Regards

 Bernd

 Zied Hamdi schrieb:
   Sorry, I forgot to say that upgrading to the last stable build
 doesn't fix
  the problem.
 
  Regards
  Zied
 
  2008/8/26 Zied Hamdi [EMAIL PROTECTED]
 
   Hi all (especially Volker and Bernd whom I didn't report anything for
 a
  while ;-)
 
  I had an intervention for a customer these last 4 months. For that
 Time my
  computer continued to live as a simple home computer (installing
  uninstalling and trying softs). Now that I'm back to my app I notice
 the
  tobago menus take nearly 20 seconds to reloads: for all that time the
 whole
  browser hangs on. I tried to begin on a clean environment by
 rebuilding on a
  new developement envirenoment but the problem persists: my menu isn't
 really
  complex: it has some 5 root level items with one submenu for each. I'd
 like
  to know what is the reason for this problem because if I encouter the
 same
  on a custumer computer I will have no answer.
 
  If anyone experience the same problems please let me know.
 
  Thanks and regards,
  --
  Zied Hamdi
  www.into-i.fr
  (previously in 2003)
  zatreex.sf.net
 
 
 
 




 --
 Zied Hamdi
 www.into-i.fr
 (previously in 2003)
 zatreex.sf.net




 --
 Zied Hamdi
 www.into-i.fr
 (previously in 2003)
 zatreex.sf.net




-- 
Zied Hamdi
www.into-i.fr
(previously in 2003)
zatreex.sf.net


[tobago] writing a pdf to response OutputStream

2008-03-06 Thread Zied Hamdi
Hi,

I wrote my code based on the example app.


*public* String downloadInvoicePDF() *throws* Throwable {

  HttpServletResponse response = (HttpServletResponse)
getFacesContext().getExternalContext().getResponse();

  getParams( getCurrentCommandExecuter()
).setPdfOutputStream( response.getOutputStream() );

  response.setContentType( application/pdf );

  // always outside the page

  *if*( *true* ) {

response.setHeader( Content-Disposition, attachment;
filename=invoice.pdf );

  }

  getCurrentCommandExecuter().execute( ContractRequests.*
WRITE_INVOICE_PDF* );

  *return* *null*;

}



In the execute() method I use the response output stream directly in my
iText code. The problem is that there's a lot of tobago headers that are
appended to the response (I joined the generated pdf for the complete
content): this is my pdf binary content when I click save file:
%PDF-1.4
...
trailer
/Root 5 0 R/ID
[139a1a074706ebacb897006a1e3115be0dfcff490c7f009f4523cb80723d5d9b]/Info
6 0 R/Size 7
startxref
669
%%EOF
html xmlns=http://www.w3.org/1999/xhtml; xmlns:jsp=
http://java.sun.com/JSP/Page;
!DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.01 Transitional//EN
html
head
script type=text/javascript

!--
var TbgHeadStart = new Date();
// --
/scripttitle
Into Services: Le Logiciel pour les prÃ(c)stataires de service/titlelink
rel=stylesheet
href=/IntoServicesWeb/org/apache/myfaces/tobago/renderkit/html/scarborough/standard/style/style.css
type=text/css
link rel=stylesheet
href=/IntoServicesWeb/org/apache/myfaces/tobago/renderkit/html/scarborough/msie/style/style.css
type=text/css
link rel=stylesheet
href=/IntoServicesWeb/org/apache/myfaces/tobago/renderkit/html/speyside/standard/style/style.css
type=text/css
link rel=stylesheet
href=/IntoServicesWeb/org/apache/myfaces/tobago/renderkit/html/speyside/msie/style/style.css
type=text/css
link rel=stylesheet
href=/IntoServicesWeb/org/apache/myfaces/tobago/renderkit/html/richmond/standard/style/style.css
type=text/css
link rel=stylesheet
href=/IntoServicesWeb/org/apache/myfaces/tobago/renderkit/html/richmond/msie/style/style.css
type=text/css
...

it seams tobago intercepts the response and adds its header even if the fils
is a pdf.

Any hint please?

Regards,
Zied



-- 
Zied Hamdi
www.into-i.fr
(previously in 2003)
zatreex.sf.net


Re: [tobago] writing a pdf to response OutputStream

2008-03-06 Thread Zied Hamdi
Ok,

Sorry I'm stupid it's even in the example 'BestPracticeController', I just
didn't see it :-)

Best regards,
Zied


2008/3/6, Volker Weber [EMAIL PROTECTED]:

 Hi Zied,


 have you looked at the wiki?

 http://wiki.apache.org/myfaces/Sending_Files

 the important thing is:

 FacesContext.getCurrentInstance().responseComplete();



 Regards,
Volker

 2008/3/6, Zied Hamdi [EMAIL PROTECTED]:
  Hi,
 
  I wrote my code based on the example app.
 
 
  public String downloadInvoicePDF() throws Throwable {
 
HttpServletResponse response = (HttpServletResponse)
  getFacesContext().getExternalContext().getResponse();
 
getParams( getCurrentCommandExecuter()
  ).setPdfOutputStream( response.getOutputStream() );
 
response.setContentType( application/pdf );
 
// always outside the page
 
if( true ) {
 
  response.setHeader( Content-Disposition,
  attachment; filename=invoice.pdf );
 
}
 
getCurrentCommandExecuter().execute(
  ContractRequests.WRITE_INVOICE_PDF );
 
return null;
 
  }
 
 
 
  In the execute() method I use the response output stream directly in my
  iText code. The problem is that there's a lot of tobago headers that are
  appended to the response (I joined the generated pdf for the complete
  content): this is my pdf binary content when I click save file:
  %PDF-1.4
  ...
  trailer
  /Root 5 0 R/ID
 
 [139a1a074706ebacb897006a1e3115be0dfcff490c7f009f4523cb80723d5d9b]/Info
  6 0 R/Size 7
  startxref
  669
  %%EOF
  html xmlns=http://www.w3.org/1999/xhtml;
  xmlns:jsp=http://java.sun.com/JSP/Page;
   !DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.01 Transitional//EN
  html
  head
  script type=text/javascript
  
  !--
  var TbgHeadStart = new Date();
  // --
   /scripttitle
  Into Services: Le Logiciel pour les prÃ(c)stataires de
 service/titlelink
  rel=stylesheet
 
 href=/IntoServicesWeb/org/apache/myfaces/tobago/renderkit/html/scarborough/standard/style/style.css
  type=text/css
   link rel=stylesheet
 
 href=/IntoServicesWeb/org/apache/myfaces/tobago/renderkit/html/scarborough/msie/style/style.css
  type=text/css
  link rel=stylesheet
 
 href=/IntoServicesWeb/org/apache/myfaces/tobago/renderkit/html/speyside/standard/style/style.css
  type=text/css
   link rel=stylesheet
 
 href=/IntoServicesWeb/org/apache/myfaces/tobago/renderkit/html/speyside/msie/style/style.css
  type=text/css
  link rel=stylesheet
 
 href=/IntoServicesWeb/org/apache/myfaces/tobago/renderkit/html/richmond/standard/style/style.css
  type=text/css
   link rel=stylesheet
 
 href=/IntoServicesWeb/org/apache/myfaces/tobago/renderkit/html/richmond/msie/style/style.css
  type=text/css
  ...
 
  it seams tobago intercepts the response and adds its header even if the
 fils
  is a pdf.
 
  Any hint please?
 
  Regards,
  Zied
 
 
 
  --
  Zied Hamdi
  www.into-i.fr
  (previously in 2003)
  zatreex.sf.net


 --
 inexso - information exchange solutions GmbH
 Bismarckstraße 13  | 26122 Oldenburg
 Tel.: +49 441 4082 356 |
 FAX:  +49 441 4082 355 | www.inexso.de




-- 
Zied Hamdi
www.into-i.fr
(previously in 2003)
zatreex.sf.net


Re: [Tobago] Scrollable text insice tc:sheet

2008-02-22 Thread Zied Hamdi
Hi Volker,

I have similar problems, but when you say 'at least' how can we do it?
there's no notion of minSize preferredSize and maxSize in tobago, we can
only specify a size in percent or in pixels (as far as I know).

Regards,
Zied

2008/2/19, Volker Weber [EMAIL PROTECTED]:

 Hi Yazid,

 are you are inside a sheet?

 if not: tc:out inside tc:cell with scrollbars=auto should do this.

 if yes: the same, plus forcing the tc:cell to get enough  height to
 render at least the scrollbars.


 Regards,
Volker

 2008/2/19, yazid [EMAIL PROTECTED]:
 
  Hello ;
  I've the same problem, but I need to display an Html text (formatted);
  tc:out is better for this (escape=false) but not scrollable.
 
 
  Helmut Swaczinna wrote:
  
   Hello Michael,
  
   you can use a tc:in or tc:textArea with readonly=true.
  
   Regards
   Helmut
  
  
  Hello,
  
  is there a way to put a scrollable text inside a tc:column in
 tc:sheet?
  I tried tc:cell scrollbars=auto and putting tc:out inside, but it
 didn't
  work
  
  regards,
  michael
  
  --
  [EMAIL PROTECTED]
  http://stawicki.jasliska.pl
  GG: 369
  JID: [EMAIL PROTECTED]
  
  
 
  --
  View this message in context:
 http://www.nabble.com/-Tobago--Scrollable-text-insice-tc%3Asheet-tp9441120p15560576.html
  Sent from the MyFaces - Users mailing list archive at Nabble.com.
 
 


 --
 inexso - information exchange solutions GmbH
 Bismarckstraße 13  | 26122 Oldenburg
 Tel.: +49 441 4082 356 |
 FAX:  +49 441 4082 355 | www.inexso.de




-- 
Zied Hamdi
www.into-i.fr
(previously in 2003)
zatreex.sf.net


Re: [Tobago] Intercepting TreeExpansion event

2008-02-15 Thread Zied Hamdi
Hi Raj,

This is surely a bad idea, but as a workaround it could be helpful:

You could add fictive subnodes (ex with label: loading...) in the closed
nodes. In the onload event, just call in ajax mode a load for each 'fictive'
node to get its parent real content. This can be embedded in a componenent
to avoid manual coding each time.

I didn't try that but I hope the idea helps.

Regards,
Zied


2008/2/14, Raj .G. Narasimhan [EMAIL PROTECTED]:

 Thanks..Helmut!...

 Guys..Do any of you  have similar request...?  ...

 On Thu, Feb 14, 2008 at 5:46 AM, Helmut Swaczinna 
 [EMAIL PROTECTED] wrote:

   Hi Raj,
 
  I think there's no chance. Maybe with the new tree implementation in
  tobago sandbox...
 
  Regards
  Helmut
 
 
  - Original Message -
  *From:* Raj .G. Narasimhan [EMAIL PROTECTED]
  *To:* MyFaces Discussion users@myfaces.apache.org
  *Sent:* Thursday, February 14, 2008 1:36 AM
  *Subject:* [Tobago] Intercepting TreeExpansion event
 
 
  Hi:
 
  I am wondering, is there any way to intercept TreeExpansion event, in
  Tobago API.  My requirement is like this.  As the tree, in my case, has
  around 500 nodes, and each node has three levels of children, it takes  more
  than 30sec to load.  So, I am thinking to add children nodes, whenever
  during tree expansion event (some TreeExpansionListnener-like
  implementation).
 
  Appreciate, any ideas, in this regard
 
  --
  Thanks,
 
  Raj .G. Narasimhan
 
 


 --
 Thanks,

 Raj .G. Narasimhan




-- 
Zied Hamdi
www.into-i.fr
(previously in 2003)
zatreex.sf.net


Re: [tobago] when renderedPartially, menuCheckbox's value is not updated

2008-02-08 Thread Zied Hamdi
Hi Volker,

I confirm it works fine under ff. I'll try to upgrade asap.

Regards,
Zied

2008/2/8, Volker Weber [EMAIL PROTECTED]:

 Hi Zied,

 in IE?
 if this problem does not exsist in FF this may be

 http://issues.apache.org/jira/browse/TOBAGO-611


 Regards,
Volker

 2008/2/8, Zied Hamdi [EMAIL PROTECTED]:
  Hi,
 
  I have a problem when I attemp to render partially a box with a checkbox
  menu popup: in (tradition mode) the checkbox's state is updated normally
 as
  expected. But When I attemp to do it in ajax mode, the menu stays always
  checked (in my case: it's its first state).
 
 
  tc:panel id=intervenantCell...
 
 
  tc:box
 
f:facet name=toolBar
 
  tc:toolBar
 
   tc:toolBarCommand
 
 
  id=cancelIntervenantSelectionCmd
 
 
  action=#{controller.cancelIntervenantSelectionCmd}
 
 
  image=image/cancel.PNG
 
 tc:attribute
 
 
  name=renderedPartially
 
 
  value=#{ajaxScope} /
 
   /tc:toolBarCommand
 
   tc:toolBarCommand
 
 f:facet
  name=menupopup
 
   tc:menu
  image=image/strict.png
 
 
  tc:menuCheckbox
 
 
  label=#{i18n.unstrictIntervenantSelectionMode}
 
 
  value=#{controller.unstrictIntervenantSelection}
 
 
  tc:attribute
 
 
  name=renderedPartially
 
 
  value=intervenantCell /
 
 
  /tc:menuCheckbox
 
   /tc:menu
 
 /f:facet
 
   /tc:toolBarCommand
 
  /tc:toolBar
 
/f:facet
 
 
  Do I have to enter an issue? (I'm under tobago 1.0.12: I have message
 bundle
  exceptions when I try to upgrade. But I didn't find this issue in jira
 in
  any version)
  --
  Zied Hamdi
  www.into-i.fr
   (previously in 2003)
  zatreex.sf.net


 --
 inexso - information exchange solutions GmbH
 Bismarckstraße 13  | 26122 Oldenburg
 Tel.: +49 441 4082 356 |
 FAX:  +49 441 4082 355 | www.inexso.de




-- 
Zied Hamdi
www.into-i.fr
(previously in 2003)
zatreex.sf.net


[tobago] when renderedPartially, menuCheckbox's value is not updated

2008-02-08 Thread Zied Hamdi
Hi,

I have a problem when I attemp to render partially a box with a checkbox
menu popup: in (tradition mode) the checkbox's state is updated normally as
expected. But When I attemp to do it in ajax mode, the menu stays always
checked (in my case: it's its first state).


tc:panel id=intervenantCell...


tc:box

  f:facet name=toolBar

tc:toolBar

 tc:toolBarCommand

   id=cancelIntervenantSelectionCmd

   action=#{
controller.cancelIntervenantSelectionCmd}

   image=image/cancel.PNG

   tc:attribute

 name=renderedPartially

 value=#{ajaxScope} /

 /tc:toolBarCommand

 tc:toolBarCommand

   f:facet name=menupopup

 tc:menu image=image/strict.png

   tc:menuCheckbox

 label=#{
i18n.unstrictIntervenantSelectionMode}

 value=#{
controller.unstrictIntervenantSelection}

 tc:attribute

   name=
renderedPartially


value=intervenantCell
/

   /tc:menuCheckbox

 /tc:menu

   /f:facet

 /tc:toolBarCommand

/tc:toolBar

  /f:facet


Do I have to enter an issue? (I'm under tobago 1.0.12: I have message bundle
exceptions when I try to upgrade. But I didn't find this issue in jira in
any version)
-- 
Zied Hamdi
www.into-i.fr
(previously in 2003)
zatreex.sf.net


Re: [tobago] Seam integration

2008-02-05 Thread Zied Hamdi
Hi Stojan,

Can you send this working version to Bernd so everyone can benefit of it. (a
blanc project would be a no head ake starting point for everyone).

Regards,
Zied

2008/2/4, Stojan Peshov [EMAIL PROTECTED]:

 Seam Example could not be deployed, antlr was missing...
 I've added
 dependency
   groupIdantlr/groupId
   artifactIdantlr/artifactId
   version2.7.6/version
 /dependency
 and deployed it successfully on Tomcat 6.0.14

 Does this means that tobago is finally working with Seam?

 Regards,
 Stojan




-- 
Zied Hamdi
www.into-i.fr
(previously in 2003)
zatreex.sf.net


Re: [tobago] Seam integration

2008-02-05 Thread Zied Hamdi
Hi Stojan,

Sorry I didn't look at the svn lastly (at my first mail there wasn't any).
So the project is in progress I guess (since there's no official post about
it), it'll be a big event for the tobago community I think. Thanks for your
posts.

Regards,
Zied


2008/2/5, Stojan Peshov [EMAIL PROTECTED]:

 I was actually talking about tobago seam example found here:
 http://svn.apache.org/repos/asf/myfaces/tobago/trunk/example/seam

 All I did was checkout the code and opened it with NetBeans as a Maven
 project (maven plugin for netbeans is required)

 At first build was not successful, but after changing the update snapshots
 parameter for the idapache.snapshots/id
 build was successful. You can do this in the main pom file in the tobago
 trunk:
 http://svn.apache.org/repos/asf/myfaces/tobago/trunk/pom.xml

 After all this, the only problem was deployment to the Tomcat, but I
 already explained this in the previous mail...

 I really don't know what to send to Bernd since the code is already at
 svn...
 Bernd you can write me if you want some more help.

 Regards,
 Stojan


 On Feb 5, 2008 11:26 AM, Zied Hamdi [EMAIL PROTECTED] wrote:

  Hi Stojan,
 
  Can you send this working version to Bernd so everyone can benefit of
  it. (a blanc project would be a no head ake starting point for everyone).
 
  Regards,
  Zied
 




-- 
Zied Hamdi
www.into-i.fr
(previously in 2003)
zatreex.sf.net


[tobago] tc:in doesn't support change facelet?

2008-01-30 Thread Zied Hamdi
Hi,

I've just realized that there is no example in the demo of a tc:in which
triggers a partial reload. On the tld doc I've only found the js attribute
'onchange'. Is it very complex to emulate the following code with the
Tobago.js lib?

tc:in value=#{bank.town} suggestMethod=#{bank.townHint}

  f:facet name=change

tc:command

 tc:attribute

   name=renderedPartially

   value=bankAccount /

/tc:command

  /f:facet

/tc:in


Regards,

-- 
Zied Hamdi
www.into-i.fr
(previously in 2003)
zatreex.sf.net


Re: [tobago] tc:in doesn't support change facelet?

2008-01-30 Thread Zied Hamdi
Hi Volker,

Sorry I didn't experiment a lot before sending my mail (a little because I
was surprized when I didn't find that tc:in supports the change facelet in
the tld doc http://myfaces.apache.org/tobago/tobago-core/tlddoc/tc/in.html)

I searched issues and I found this:
http://www.mail-archive.com/users@myfaces.apache.org/msg37766.html

I'll experiment a little more...

Regards,
Zied


2008/1/30, Volker Weber [EMAIL PROTECTED]:

 Hi Zied,

 in general tc:in supports the change facet.

 Which tobago version 1.0.x or 1.1-SNAP?

 I think this is a problem of mixing inputSuggest with change facet, i
 never tried this, but i observed problems with adding additional
 eventlisteners when moving inputsuggest to dojo.

 Regards,
Volker

 2008/1/30, Zied Hamdi [EMAIL PROTECTED]:
  Hi,
 
  I've just realized that there is no example in the demo of a tc:in
 which
  triggers a partial reload. On the tld doc I've only found the js
 attribute
  'onchange'. Is it very complex to emulate the following code with the
  Tobago.js lib?
 
  tc:in value=#{bank.town} suggestMethod=#{bank.townHint
 }
 
f:facet name=change
 
  tc:command
 
   tc:attribute
 
 name=renderedPartially
 
 value=bankAccount /
 
  /tc:command
 
/f:facet
 
  /tc:in
 
 
  Regards,
 
  --
  Zied Hamdi
  www.into-i.fr
  (previously in 2003)
  zatreex.sf.net


 --
 inexso - information exchange solutions GmbH
 Bismarckstraße 13  | 26122 Oldenburg
 Tel.: +49 441 4082 356 |
 FAX:  +49 441 4082 355 | www.inexso.de




-- 
Zied Hamdi
www.into-i.fr
(previously in 2003)
zatreex.sf.net


Re: [tobago] Seam integration

2008-01-29 Thread Zied Hamdi
Thanks Bernd,

I think this will be a good satrting point for a growing community.

Regards,
Zied


2008/1/28, Bernd Bohmann [EMAIL PROTECTED]:

 Hello Zied,

 just started with a seam example project. But the project is not a
 commit state. I think it should be finished in a week.

 Regards

 Bernd

 Zied Hamdi schrieb:
  Hi Bernd,
 
  Can you please make a blanc Seam + Tobago project available on svn (with
 the
  1.1.0 snapshot). I think this could help a lot of people have an easy
 start
  (including me ;-).
 
  Regards,
  Zied
 
 
  2008/1/23, Zied Hamdi [EMAIL PROTECTED]:
  Sorry for spamming,
 
  a last detail: when I attemp to display a richfaces component in my
 page,
  I have errors of this type thrown by Tobago in the log:
 
  resourceDirs = '[skins, org/apache/myfaces/tobago/renderkit]'
 contentType
  = 'html' theme = 'richmond' browser = 'msie_7_0' subDir = 'tag' name =
 '
  org.richfaces.ToolBarRendererRenderer' suffix = '' key = 'null'
 
  12:12:57,140 ERROR [ResourceManagerImpl] Don't find any RendererClass
 for
  org.richfaces.ToolBarRendererRenderer. Please check you configuration.
 
  12:12:57,156 ERROR [ResourceManagerImpl] Path not found, and no
 fallback. Using
  empty string.
 
 
 
  Wich means Tobago takes control over the display but, for an unknown
  reason, doesn't call the encode() method on the view root...
 
 
   2008/1/23, Zied Hamdi [EMAIL PROTECTED]:
  I maybe have a hint Bernd,
 
  I have ClientProperties.getInstance(UIViewRoot) that prints
 
  *INFO [ClientProperties] No ClientProperties instance found creating
 new
  one*
 
  On each refresh.
  Did the seam project work in you environement with the snapshot?
 
  Regards,
  Zied
 
  2008/1/23, Zied Hamdi [EMAIL PROTECTED]:
  Hi Bernd,
 
  I opted to use the 1.1.0 snapshot. The problem I have is maybe not
  related to Tobago: my page is not interpreted as a jsf source: it is
 sent to
  the browser as is (with supressed namespaces):
   tc:page
tc:out value=ok/tc:out
   /tc:page
 
  It doesn't seem to be anything wrong in the log (apart some facelets
  info written to stderr). Any idea please? (my conf files are the same
 as
  yesterday)
 
  Regards,
  Zied
 
 
  11:15:19,937 ERROR [STDERR] 23 janv. 2008 11:15:19
  com.sun.facelets.compiler.TagLibraryConfig loadImplicit
 
  INFO: Added Library from:
 
 jar:file:/D:/jbdevstudio/jboss-eap/jboss-as/server/default/deploy/IntoServices-
  ear.ear/IntoServices.war/WEB-INF/lib/jboss-
  seam-mail.jar!/META-INF/seam-mail.taglib.xml
 
  11:15:19,937 ERROR [STDERR] 23 janv. 2008 11:15:19
  com.sun.facelets.compiler.TagLibraryConfig loadImplicit
 
  INFO: Added Library from:
 
 jar:file:/D:/jbdevstudio/jboss-eap/jboss-as/server/default/deploy/IntoServices-
  ear.ear/IntoServices.war/WEB-INF/lib/jboss-
  seam-pdf.jar!/META-INF/seam-pdf.taglib.xml
 
  11:15:19,968 ERROR [STDERR] 23 janv. 2008 11:15:19
  com.sun.facelets.compiler.TagLibraryConfig loadImplicit
 
  INFO: Added Library from:
 
 jar:file:/D:/jbdevstudio/jboss-eap/jboss-as/server/default/deploy/IntoServices-
  ear.ear/IntoServices.war/WEB-INF/lib/jboss-
  seam-ui.jar!/META-INF/s.taglib.xml
 
  11:15:20,015 ERROR [STDERR] 23 janv. 2008 11:15:20
  com.sun.facelets.compiler.TagLibraryConfig loadImplicit
 
  INFO: Added Library from:
 
 jar:file:/D:/jbdevstudio/jboss-eap/jboss-as/server/default/deploy/IntoServices-
  ear.ear/IntoServices.war/WEB-INF/lib/jsf-
  facelets.jar!/META-INF/jsf-core.taglib.xml
 
  11:15:20,015 ERROR [STDERR] 23 janv. 2008 11:15:20
  com.sun.facelets.compiler.TagLibraryConfig loadImplicit
 
  INFO: Added Library from:
 
 jar:file:/D:/jbdevstudio/jboss-eap/jboss-as/server/default/deploy/IntoServices-
  ear.ear/IntoServices.war/WEB-INF/lib/jsf-
  facelets.jar!/META-INF/jsf-html.taglib.xml
 
  11:15:20,046 ERROR [STDERR] 23 janv. 2008 11:15:20
  com.sun.facelets.compiler.TagLibraryConfig loadImplicit
 
  INFO: Added Library from:
 
 jar:file:/D:/jbdevstudio/jboss-eap/jboss-as/server/default/deploy/IntoServices-
  ear.ear/IntoServices.war/WEB-INF/lib/jsf-
  facelets.jar!/META-INF/jsf-ui.taglib.xml
 
  11:15:20,062 ERROR [STDERR] 23 janv. 2008 11:15:20
  com.sun.facelets.compiler.TagLibraryConfig loadImplicit
 
  INFO: Added Library from:
 
 jar:file:/D:/jbdevstudio/jboss-eap/jboss-as/server/default/deploy/IntoServices-
  ear.ear/IntoServices.war/WEB-INF/lib/jsf-
  facelets.jar!/META-INF/jstl-core.taglib.xml
 
  11:15:20,078 ERROR [STDERR] 23 janv. 2008 11:15:20
  com.sun.facelets.compiler.TagLibraryConfig loadImplicit
 
  INFO: Added Library from:
 
 jar:file:/D:/jbdevstudio/jboss-eap/jboss-as/server/default/deploy/IntoServices-
  ear.ear/IntoServices.war/WEB-INF/lib/jsf-
  facelets.jar!/META-INF/jstl-fn.taglib.xml
 
  11:15:20,109 ERROR [STDERR] 23 janv. 2008 11:15:20
  com.sun.facelets.compiler.TagLibraryConfig loadImplicit
 
  INFO: Added Library from:
 
 jar:file:/D:/jbdevstudio/jboss-eap/jboss-as/server/default/deploy/IntoServices-
  ear.ear/IntoServices.war/WEB-INF/lib/richfaces-
  ui.jar!/META-INF

Re: [tobago] Seam integration

2008-01-25 Thread Zied Hamdi
Hi Bernd,

Can you please make a blanc Seam + Tobago project available on svn (with the
1.1.0 snapshot). I think this could help a lot of people have an easy start
(including me ;-).

Regards,
Zied


2008/1/23, Zied Hamdi [EMAIL PROTECTED]:

 Sorry for spamming,

 a last detail: when I attemp to display a richfaces component in my page,
 I have errors of this type thrown by Tobago in the log:

 resourceDirs = '[skins, org/apache/myfaces/tobago/renderkit]' contentType
 = 'html' theme = 'richmond' browser = 'msie_7_0' subDir = 'tag' name = '
 org.richfaces.ToolBarRendererRenderer' suffix = '' key = 'null'

 12:12:57,140 ERROR [ResourceManagerImpl] Don't find any RendererClass for
 org.richfaces.ToolBarRendererRenderer. Please check you configuration.

 12:12:57,156 ERROR [ResourceManagerImpl] Path not found, and no fallback. 
 Using
 empty string.



 Wich means Tobago takes control over the display but, for an unknown
 reason, doesn't call the encode() method on the view root...


  2008/1/23, Zied Hamdi [EMAIL PROTECTED]:
 
  I maybe have a hint Bernd,
 
  I have ClientProperties.getInstance(UIViewRoot) that prints
 
  *INFO [ClientProperties] No ClientProperties instance found creating new
  one*
 
  On each refresh.
  Did the seam project work in you environement with the snapshot?
 
  Regards,
  Zied
 
  2008/1/23, Zied Hamdi [EMAIL PROTECTED]:
  
   Hi Bernd,
  
   I opted to use the 1.1.0 snapshot. The problem I have is maybe not
   related to Tobago: my page is not interpreted as a jsf source: it is sent 
   to
   the browser as is (with supressed namespaces):
tc:page
 tc:out value=ok/tc:out
/tc:page
  
   It doesn't seem to be anything wrong in the log (apart some facelets
   info written to stderr). Any idea please? (my conf files are the same as
   yesterday)
  
   Regards,
   Zied
  
  
   11:15:19,937 ERROR [STDERR] 23 janv. 2008 11:15:19
   com.sun.facelets.compiler.TagLibraryConfig loadImplicit
  
   INFO: Added Library from:
   jar:file:/D:/jbdevstudio/jboss-eap/jboss-as/server/default/deploy/IntoServices-
   ear.ear/IntoServices.war/WEB-INF/lib/jboss-
   seam-mail.jar!/META-INF/seam-mail.taglib.xml
  
   11:15:19,937 ERROR [STDERR] 23 janv. 2008 11:15:19
   com.sun.facelets.compiler.TagLibraryConfig loadImplicit
  
   INFO: Added Library from:
   jar:file:/D:/jbdevstudio/jboss-eap/jboss-as/server/default/deploy/IntoServices-
   ear.ear/IntoServices.war/WEB-INF/lib/jboss-
   seam-pdf.jar!/META-INF/seam-pdf.taglib.xml
  
   11:15:19,968 ERROR [STDERR] 23 janv. 2008 11:15:19
   com.sun.facelets.compiler.TagLibraryConfig loadImplicit
  
   INFO: Added Library from:
   jar:file:/D:/jbdevstudio/jboss-eap/jboss-as/server/default/deploy/IntoServices-
   ear.ear/IntoServices.war/WEB-INF/lib/jboss-
   seam-ui.jar!/META-INF/s.taglib.xml
  
   11:15:20,015 ERROR [STDERR] 23 janv. 2008 11:15:20
   com.sun.facelets.compiler.TagLibraryConfig loadImplicit
  
   INFO: Added Library from:
   jar:file:/D:/jbdevstudio/jboss-eap/jboss-as/server/default/deploy/IntoServices-
   ear.ear/IntoServices.war/WEB-INF/lib/jsf-
   facelets.jar!/META-INF/jsf-core.taglib.xml
  
   11:15:20,015 ERROR [STDERR] 23 janv. 2008 11:15:20
   com.sun.facelets.compiler.TagLibraryConfig loadImplicit
  
   INFO: Added Library from:
   jar:file:/D:/jbdevstudio/jboss-eap/jboss-as/server/default/deploy/IntoServices-
   ear.ear/IntoServices.war/WEB-INF/lib/jsf-
   facelets.jar!/META-INF/jsf-html.taglib.xml
  
   11:15:20,046 ERROR [STDERR] 23 janv. 2008 11:15:20
   com.sun.facelets.compiler.TagLibraryConfig loadImplicit
  
   INFO: Added Library from:
   jar:file:/D:/jbdevstudio/jboss-eap/jboss-as/server/default/deploy/IntoServices-
   ear.ear/IntoServices.war/WEB-INF/lib/jsf-
   facelets.jar!/META-INF/jsf-ui.taglib.xml
  
   11:15:20,062 ERROR [STDERR] 23 janv. 2008 11:15:20
   com.sun.facelets.compiler.TagLibraryConfig loadImplicit
  
   INFO: Added Library from:
   jar:file:/D:/jbdevstudio/jboss-eap/jboss-as/server/default/deploy/IntoServices-
   ear.ear/IntoServices.war/WEB-INF/lib/jsf-
   facelets.jar!/META-INF/jstl-core.taglib.xml
  
   11:15:20,078 ERROR [STDERR] 23 janv. 2008 11:15:20
   com.sun.facelets.compiler.TagLibraryConfig loadImplicit
  
   INFO: Added Library from:
   jar:file:/D:/jbdevstudio/jboss-eap/jboss-as/server/default/deploy/IntoServices-
   ear.ear/IntoServices.war/WEB-INF/lib/jsf-
   facelets.jar!/META-INF/jstl-fn.taglib.xml
  
   11:15:20,109 ERROR [STDERR] 23 janv. 2008 11:15:20
   com.sun.facelets.compiler.TagLibraryConfig loadImplicit
  
   INFO: Added Library from:
   jar:file:/D:/jbdevstudio/jboss-eap/jboss-as/server/default/deploy/IntoServices-
   ear.ear/IntoServices.war/WEB-INF/lib/richfaces-
   ui.jar!/META-INF/a4j.taglib.xml
  
   11:15:20,109 ERROR [STDERR] 23 janv. 2008 11:15:20
   com.sun.facelets.compiler.TagLibraryConfig loadImplicit
  
   INFO: Added Library from:
   jar:file:/D:/jbdevstudio/jboss-eap/jboss-as/server/default/deploy/IntoServices-
   ear.ear/IntoServices.war/WEB-INF/lib

Re: [tobago] Seam integration

2008-01-23 Thread Zied Hamdi
 '
org.apache.myfaces.READONLY_AS_DISABLED_FOR_SELECTS' found, using default
value true

11:15:20,296 INFO  [MyfacesConfig] No context init parameter '
org.apache.myfaces.CONFIG_REFRESH_PERIOD' found, using default value 2

11:15:20,296 INFO  [MyfacesConfig] No context init parameter '
org.apache.myfaces.DETECT_JAVASCRIPT' found, using default value false

11:15:20,296 INFO  [MyfacesConfig] No context init parameter '
org.apache.myfaces.AUTO_SCROLL' found, using default value false

11:15:20,296 INFO  [MyfacesConfig] No context init parameter '
org.apache.myfaces.ADD_RESOURCE_CLASS' found, using default value
org.apache.myfaces.renderkit.html.util.DefaultAddResource

11:15:20,296 INFO  [MyfacesConfig] No context init parameter '
org.apache.myfaces.RESOURCE_VIRTUAL_PATH' found, using default value
/faces/myFacesExtensionResource

11:15:20,296 INFO  [MyfacesConfig] No context init parameter '
org.apache.myfaces.CHECK_EXTENSIONS_FILTER' found, using default value true

11:15:20,296 INFO  [MyfacesConfig] Starting up Tomahawk on the
RI-JSF-Implementation.





2008/1/22, Bernd Bohmann [EMAIL PROTECTED]:

 Hello Zied,

 richfaces has it's own ViewHandlerImpl. Until 1.1.0-SNAPSHOT tobago
 depends on this own ViewHandlerImpl. Now tobago doesn't require a own
 ViewHandlerImpl (I hope). Maybe we backport this change to a 1.0.15
 version.

 Please can you remove the richfaces lib from the WEB-INF/lib folder or
 use the 1.1.0-SNAPSHOT version of tobago until we backport this fix.

 Regards

 Bernd

 Zied Hamdi schrieb:
  Hi Bernd,
 
  I've tried to estimate the cost of moving to rich faces (to avoid
 unexpected
  secondary effects with Tobago), it's too much for my app in its state
 today.
  So I'm back to Tobago :-).
 
  Did you say you were able to run tobago on Seam (if the view is not the
  RichFaces implementation) ?
 
  I'm actually facing the same problem as before: my page is extremey
 basic. I
  verified the view root is tobago's view.
 
 
  f:view xmlns:f=http://java.sun.com/jsf/core;
 
xmlns:tc=http://myfaces.apache.org/tobago/component;
 
tc:page
 
  tc:out value=ok /
 
/tc:page
 
  /f:view
 
  I don't understand where the rich faces view handler takes place in this
  schema. (it was the case in the previous example where I had tobago
 inside
  rich faces panels, but now the view is pure tobago...)
 
  Any idea please?
 
  Regards,
  Zied



Re: [tobago] Seam integration

2008-01-23 Thread Zied Hamdi
I maybe have a hint Bernd,

I have ClientProperties.getInstance(UIViewRoot) that prints

*INFO [ClientProperties] No ClientProperties instance found creating new one
*

On each refresh.
Did the seam project work in you environement with the snapshot?

Regards,
Zied

2008/1/23, Zied Hamdi [EMAIL PROTECTED]:

 Hi Bernd,

 I opted to use the 1.1.0 snapshot. The problem I have is maybe not related
 to Tobago: my page is not interpreted as a jsf source: it is sent to the
 browser as is (with supressed namespaces):
  tc:page
   tc:out value=ok/tc:out
  /tc:page

 It doesn't seem to be anything wrong in the log (apart some facelets info
 written to stderr). Any idea please? (my conf files are the same as
 yesterday)

 Regards,
 Zied


 11:15:19,937 ERROR [STDERR] 23 janv. 2008 11:15:19
 com.sun.facelets.compiler.TagLibraryConfig loadImplicit

 INFO: Added Library from:
 jar:file:/D:/jbdevstudio/jboss-eap/jboss-as/server/default/deploy/IntoServices-
 ear.ear/IntoServices.war/WEB-INF/lib/jboss-
 seam-mail.jar!/META-INF/seam-mail.taglib.xml

 11:15:19,937 ERROR [STDERR] 23 janv. 2008 11:15:19
 com.sun.facelets.compiler.TagLibraryConfig loadImplicit

 INFO: Added Library from:
 jar:file:/D:/jbdevstudio/jboss-eap/jboss-as/server/default/deploy/IntoServices-
 ear.ear/IntoServices.war/WEB-INF/lib/jboss-
 seam-pdf.jar!/META-INF/seam-pdf.taglib.xml

 11:15:19,968 ERROR [STDERR] 23 janv. 2008 11:15:19
 com.sun.facelets.compiler.TagLibraryConfig loadImplicit

 INFO: Added Library from:
 jar:file:/D:/jbdevstudio/jboss-eap/jboss-as/server/default/deploy/IntoServices-
 ear.ear/IntoServices.war/WEB-INF/lib/jboss-
 seam-ui.jar!/META-INF/s.taglib.xml

 11:15:20,015 ERROR [STDERR] 23 janv. 2008 11:15:20
 com.sun.facelets.compiler.TagLibraryConfig loadImplicit

 INFO: Added Library from:
 jar:file:/D:/jbdevstudio/jboss-eap/jboss-as/server/default/deploy/IntoServices-
 ear.ear/IntoServices.war/WEB-INF/lib/jsf-
 facelets.jar!/META-INF/jsf-core.taglib.xml

 11:15:20,015 ERROR [STDERR] 23 janv. 2008 11:15:20
 com.sun.facelets.compiler.TagLibraryConfig loadImplicit

 INFO: Added Library from:
 jar:file:/D:/jbdevstudio/jboss-eap/jboss-as/server/default/deploy/IntoServices-
 ear.ear/IntoServices.war/WEB-INF/lib/jsf-
 facelets.jar!/META-INF/jsf-html.taglib.xml

 11:15:20,046 ERROR [STDERR] 23 janv. 2008 11:15:20
 com.sun.facelets.compiler.TagLibraryConfig loadImplicit

 INFO: Added Library from:
 jar:file:/D:/jbdevstudio/jboss-eap/jboss-as/server/default/deploy/IntoServices-
 ear.ear/IntoServices.war/WEB-INF/lib/jsf-
 facelets.jar!/META-INF/jsf-ui.taglib.xml

 11:15:20,062 ERROR [STDERR] 23 janv. 2008 11:15:20
 com.sun.facelets.compiler.TagLibraryConfig loadImplicit

 INFO: Added Library from:
 jar:file:/D:/jbdevstudio/jboss-eap/jboss-as/server/default/deploy/IntoServices-
 ear.ear/IntoServices.war/WEB-INF/lib/jsf-
 facelets.jar!/META-INF/jstl-core.taglib.xml

 11:15:20,078 ERROR [STDERR] 23 janv. 2008 11:15:20
 com.sun.facelets.compiler.TagLibraryConfig loadImplicit

 INFO: Added Library from:
 jar:file:/D:/jbdevstudio/jboss-eap/jboss-as/server/default/deploy/IntoServices-
 ear.ear/IntoServices.war/WEB-INF/lib/jsf-
 facelets.jar!/META-INF/jstl-fn.taglib.xml

 11:15:20,109 ERROR [STDERR] 23 janv. 2008 11:15:20
 com.sun.facelets.compiler.TagLibraryConfig loadImplicit

 INFO: Added Library from:
 jar:file:/D:/jbdevstudio/jboss-eap/jboss-as/server/default/deploy/IntoServices-
 ear.ear/IntoServices.war/WEB-INF/lib/richfaces-
 ui.jar!/META-INF/a4j.taglib.xml

 11:15:20,109 ERROR [STDERR] 23 janv. 2008 11:15:20
 com.sun.facelets.compiler.TagLibraryConfig loadImplicit

 INFO: Added Library from:
 jar:file:/D:/jbdevstudio/jboss-eap/jboss-as/server/default/deploy/IntoServices-
 ear.ear/IntoServices.war/WEB-INF/lib/richfaces-
 ui.jar!/META-INF/ajax4jsf.taglib.xml

 11:15:20,171 ERROR [STDERR] 23 janv. 2008 11:15:20
 com.sun.facelets.compiler.TagLibraryConfig loadImplicit

 INFO: Added Library from:
 jar:file:/D:/jbdevstudio/jboss-eap/jboss-as/server/default/deploy/IntoServices-
 ear.ear/IntoServices.war/WEB-INF/lib/richfaces-
 ui.jar!/META-INF/rich.taglib.xml

 11:15:20,187 ERROR [STDERR] 23 janv. 2008 11:15:20
 com.sun.facelets.compiler.TagLibraryConfig loadImplicit

 INFO: Added Library from:
 jar:file:/D:/jbdevstudio/jboss-eap/jboss-as/server/default/deploy/IntoServices-
 ear.ear/IntoServices.war/WEB-INF/lib/richfaces-
 ui.jar!/META-INF/richfaces.taglib.xml

 11:15:20,187 ERROR [STDERR] 23 janv. 2008 11:15:20
 com.sun.facelets.compiler.TagLibraryConfig loadImplicit

 INFO: Added Library from:
 jar:file:/D:/jbdevstudio/jboss-eap/jboss-as/server/default/deploy/IntoServices-
 ear.ear/IntoServices.war/WEB-INF/lib/tomahawk-
 facelets-1.1.6.jar!/META-INF/tomahawk-sandbox.taglib.xml

 11:15:20,203 ERROR [STDERR] 23 janv. 2008 11:15:20
 com.sun.facelets.compiler.TagLibraryConfig loadImplicit

 INFO: Added Library from:
 jar:file:/D:/jbdevstudio/jboss-eap/jboss-as/server/default/deploy/IntoServices-
 ear.ear/IntoServices.war/WEB-INF/lib/tomahawk

Re: [tobago] Seam integration

2008-01-23 Thread Zied Hamdi
Sorry for spamming,

a last detail: when I attemp to display a richfaces component in my page, I
have errors of this type thrown by Tobago in the log:

resourceDirs = '[skins, org/apache/myfaces/tobago/renderkit]' contentType =
'html' theme = 'richmond' browser = 'msie_7_0' subDir = 'tag' name = '
org.richfaces.ToolBarRendererRenderer' suffix = '' key = 'null'

12:12:57,140 ERROR [ResourceManagerImpl] Don't find any RendererClass for
org.richfaces.ToolBarRendererRenderer. Please check you configuration.

12:12:57,156 ERROR [ResourceManagerImpl] Path not found, and no fallback. Using
empty string.



Wich means Tobago takes control over the display but, for an unknown reason,
doesn't call the encode() method on the view root...


2008/1/23, Zied Hamdi [EMAIL PROTECTED]:

 I maybe have a hint Bernd,

 I have ClientProperties.getInstance(UIViewRoot) that prints

 *INFO [ClientProperties] No ClientProperties instance found creating new
 one*

 On each refresh.
 Did the seam project work in you environement with the snapshot?

 Regards,
 Zied

 2008/1/23, Zied Hamdi [EMAIL PROTECTED]:
 
  Hi Bernd,
 
  I opted to use the 1.1.0 snapshot. The problem I have is maybe not
  related to Tobago: my page is not interpreted as a jsf source: it is sent to
  the browser as is (with supressed namespaces):
   tc:page
tc:out value=ok/tc:out
   /tc:page
 
  It doesn't seem to be anything wrong in the log (apart some facelets
  info written to stderr). Any idea please? (my conf files are the same as
  yesterday)
 
  Regards,
  Zied
 
 
  11:15:19,937 ERROR [STDERR] 23 janv. 2008 11:15:19
  com.sun.facelets.compiler.TagLibraryConfig loadImplicit
 
  INFO: Added Library from:
  jar:file:/D:/jbdevstudio/jboss-eap/jboss-as/server/default/deploy/IntoServices-
  ear.ear/IntoServices.war/WEB-INF/lib/jboss-
  seam-mail.jar!/META-INF/seam-mail.taglib.xml
 
  11:15:19,937 ERROR [STDERR] 23 janv. 2008 11:15:19
  com.sun.facelets.compiler.TagLibraryConfig loadImplicit
 
  INFO: Added Library from:
  jar:file:/D:/jbdevstudio/jboss-eap/jboss-as/server/default/deploy/IntoServices-
  ear.ear/IntoServices.war/WEB-INF/lib/jboss-
  seam-pdf.jar!/META-INF/seam-pdf.taglib.xml
 
  11:15:19,968 ERROR [STDERR] 23 janv. 2008 11:15:19
  com.sun.facelets.compiler.TagLibraryConfig loadImplicit
 
  INFO: Added Library from:
  jar:file:/D:/jbdevstudio/jboss-eap/jboss-as/server/default/deploy/IntoServices-
  ear.ear/IntoServices.war/WEB-INF/lib/jboss-
  seam-ui.jar!/META-INF/s.taglib.xml
 
  11:15:20,015 ERROR [STDERR] 23 janv. 2008 11:15:20
  com.sun.facelets.compiler.TagLibraryConfig loadImplicit
 
  INFO: Added Library from:
  jar:file:/D:/jbdevstudio/jboss-eap/jboss-as/server/default/deploy/IntoServices-
  ear.ear/IntoServices.war/WEB-INF/lib/jsf-
  facelets.jar!/META-INF/jsf-core.taglib.xml
 
  11:15:20,015 ERROR [STDERR] 23 janv. 2008 11:15:20
  com.sun.facelets.compiler.TagLibraryConfig loadImplicit
 
  INFO: Added Library from:
  jar:file:/D:/jbdevstudio/jboss-eap/jboss-as/server/default/deploy/IntoServices-
  ear.ear/IntoServices.war/WEB-INF/lib/jsf-
  facelets.jar!/META-INF/jsf-html.taglib.xml
 
  11:15:20,046 ERROR [STDERR] 23 janv. 2008 11:15:20
  com.sun.facelets.compiler.TagLibraryConfig loadImplicit
 
  INFO: Added Library from:
  jar:file:/D:/jbdevstudio/jboss-eap/jboss-as/server/default/deploy/IntoServices-
  ear.ear/IntoServices.war/WEB-INF/lib/jsf-
  facelets.jar!/META-INF/jsf-ui.taglib.xml
 
  11:15:20,062 ERROR [STDERR] 23 janv. 2008 11:15:20
  com.sun.facelets.compiler.TagLibraryConfig loadImplicit
 
  INFO: Added Library from:
  jar:file:/D:/jbdevstudio/jboss-eap/jboss-as/server/default/deploy/IntoServices-
  ear.ear/IntoServices.war/WEB-INF/lib/jsf-
  facelets.jar!/META-INF/jstl-core.taglib.xml
 
  11:15:20,078 ERROR [STDERR] 23 janv. 2008 11:15:20
  com.sun.facelets.compiler.TagLibraryConfig loadImplicit
 
  INFO: Added Library from:
  jar:file:/D:/jbdevstudio/jboss-eap/jboss-as/server/default/deploy/IntoServices-
  ear.ear/IntoServices.war/WEB-INF/lib/jsf-
  facelets.jar!/META-INF/jstl-fn.taglib.xml
 
  11:15:20,109 ERROR [STDERR] 23 janv. 2008 11:15:20
  com.sun.facelets.compiler.TagLibraryConfig loadImplicit
 
  INFO: Added Library from:
  jar:file:/D:/jbdevstudio/jboss-eap/jboss-as/server/default/deploy/IntoServices-
  ear.ear/IntoServices.war/WEB-INF/lib/richfaces-
  ui.jar!/META-INF/a4j.taglib.xml
 
  11:15:20,109 ERROR [STDERR] 23 janv. 2008 11:15:20
  com.sun.facelets.compiler.TagLibraryConfig loadImplicit
 
  INFO: Added Library from:
  jar:file:/D:/jbdevstudio/jboss-eap/jboss-as/server/default/deploy/IntoServices-
  ear.ear/IntoServices.war/WEB-INF/lib/richfaces-
  ui.jar!/META-INF/ajax4jsf.taglib.xml
 
  11:15:20,171 ERROR [STDERR] 23 janv. 2008 11:15:20
  com.sun.facelets.compiler.TagLibraryConfig loadImplicit
 
  INFO: Added Library from:
  jar:file:/D:/jbdevstudio/jboss-eap/jboss-as/server/default/deploy/IntoServices-
  ear.ear/IntoServices.war/WEB-INF/lib/richfaces-
  ui.jar!/META-INF/rich.taglib.xml
 
  11:15

Re: [tobago] Seam integration

2008-01-21 Thread Zied Hamdi
Hi Bernd,

Did I understand the issue? is it to fix compatibilty of Tobago with other
jsf implementations like rich faces?

Regards,
Zied

2008/1/18, Bernd Bohmann [EMAIL PROTECTED]:

 Hello Zied,

 I think tobago should compatible with seam or a other webbeans
 implementation. The own ViewHandler from richfaces is the cause of the
 error.

 I have change the tobago code to reflect this.

 https://issues.apache.org/jira/browse/TOBAGO-600

 The next nighlty build of 1.1.0 should include this fix. Maybe we
 backport this change to a 1.0.15 release. I would not like to include
 this change in the 1.0.14 release, which will be released in a few days.

 The current 1.1.0-SNAPSHOT is not stable.

 Regards

 Bernd

 Zied Hamdi schrieb:
  Hi Bernd,
 
  I posted it to
 
 http://dl.free.fr/nMcECNoTg/20080117-105000NonworkingTobagointegration.zip.
  It will be valid for 30 days.
 
  I would like to insist on the presence of Seam in the next coming
  applications architecture (it resolves a lot of JSF everyday problems).
 Seen
  it's granted to work with RichFaces, all developers will opt for it, and
 if
  Tobago is not compatible with Seam or RichFaces, it will be abandoned by
 all
  this big community. This is naturally a personal opinion.
 
  Regards,
  Zied
 
 
  2008/1/17, Bernd Bohmann [EMAIL PROTECTED]:
  Hello Zied,
 
  can you send me the test project, please.
 
  I will try to debug the project.
 
  Regards
 
  Bernd
 
  Zied Hamdi schrieb:
  Hi,
 
  I'm trying to run a seam-tobago testing project.
 
  I have the following exception, and i can't find why it happens. I
  started
  from a working seam project then i added the Tobago conf (that i took
  from
  my existing working tobago project). I'm under JBoss 4.2 so the sun
 JSF
  implementation.
 
  Notice there's nothing confidential in my project: I can send it to
 you
  as
  an empty testing project.
 
 
  16:42:32,265 ERROR [STDERR] 16 janv. 2008 16:42:32
  com.sun.facelets.FaceletViewHandler *handleRenderException*
 
  GRAVE: Error Rendering View[/home.xhtml]
 
  *java.util.NoSuchElementException*
 
at java.util.StringTokenizer.nextToken(*StringTokenizer.java
 :332*)
 
at
 org.apache.myfaces.tobago.context.ResourceManagerImpl.getPaths
  (*
  ResourceManagerImpl.java:180*)
 
at
  org.apache.myfaces.tobago.context.ResourceManagerImpl.getRenderer(*
  ResourceManagerImpl.java:341*)
 
at
 org.apache.myfaces.tobago.renderkit.TobagoRenderKit.getRenderer
  (*
  TobagoRenderKit.java:64*)
 
at javax.faces.component.UIComponentBase.getRenderer(*
  UIComponentBase.java:1206*)
 
at javax.faces.component.UIComponentBase.encodeBegin(*
  UIComponentBase.java:786*)
 
at javax.faces.component.UIComponent.encodeAll(*UIComponent.java
  :884*)
at javax.faces.component.UIComponent.encodeAll(*UIComponent.java
  :892*)
at com.sun.facelets.FaceletViewHandler.renderView(*
  FaceletViewHandler.java:592*)
 
at org.ajax4jsf.application.ViewHandlerWrapper.renderView(*
  ViewHandlerWrapper.java:108*)
 
at org.ajax4jsf.application.AjaxViewHandler.renderView(*
  AjaxViewHandler.java:243*)
 
at
  org.apache.myfaces.tobago.lifecycle.RenderResponseExecutor.execute(
  *RenderResponseExecutor.java:56*)
 
at org.apache.myfaces.tobago.lifecycle.TobagoLifecycle.render(*
  TobagoLifecycle.java:141*)
 
at javax.faces.webapp.FacesServlet.service(*FacesServlet.java
  :245*)
at
  org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(*
  ApplicationFilterChain.java:290*)
 
at org.apache.catalina.core.ApplicationFilterChain.doFilter(*
  ApplicationFilterChain.java:206*)
 
at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(*
  SeamFilter.java:83*)
 
at org.jboss.seam.web.MultipartFilter.doFilter(*
  MultipartFilter.java
  :85*)
 
at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(*
  SeamFilter.java:69*)
 
at org.jboss.seam.web.ExceptionFilter.doFilter(*
  ExceptionFilter.java
  :64*)
 
at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(*
  SeamFilter.java:69*)
 
at org.jboss.seam.web.RedirectFilter.doFilter(*
 RedirectFilter.java
  :44*
  )
 
at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(*
  SeamFilter.java:69*)
 
at org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(*
  BaseXMLFilter.java
  :141*)
 
at org.ajax4jsf.webapp.BaseFilter.doFilter(*BaseFilter.java
 :281*)
 
at org.jboss.seam.web.Ajax4jsfFilter.doFilter(*
 Ajax4jsfFilter.java
  :60*
  )
 
at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(*
  SeamFilter.java:69*)
 
at org.jboss.seam.web.LoggingFilter.doFilter(*LoggingFilter.java
  :58*)
at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(*
  SeamFilter.java:69*)
 
at org.jboss.seam.debug.hot.HotDeployFilter.doFilter(*
  HotDeployFilter.java:68

Re: [tobago] Seam integration

2008-01-17 Thread Zied Hamdi
Hi Bernd,

I posted it to
http://dl.free.fr/nMcECNoTg/20080117-105000NonworkingTobagointegration.zip .
It will be valid for 30 days.

I would like to insist on the presence of Seam in the next coming
applications architecture (it resolves a lot of JSF everyday problems). Seen
it's granted to work with RichFaces, all developers will opt for it, and if
Tobago is not compatible with Seam or RichFaces, it will be abandoned by all
this big community. This is naturally a personal opinion.

Regards,
Zied


2008/1/17, Bernd Bohmann [EMAIL PROTECTED]:

 Hello Zied,

 can you send me the test project, please.

 I will try to debug the project.

 Regards

 Bernd

 Zied Hamdi schrieb:
  Hi,
 
  I'm trying to run a seam-tobago testing project.
 
  I have the following exception, and i can't find why it happens. I
 started
  from a working seam project then i added the Tobago conf (that i took
 from
  my existing working tobago project). I'm under JBoss 4.2 so the sun JSF
  implementation.
 
  Notice there's nothing confidential in my project: I can send it to you
 as
  an empty testing project.
 
 
  16:42:32,265 ERROR [STDERR] 16 janv. 2008 16:42:32
  com.sun.facelets.FaceletViewHandler *handleRenderException*
 
  GRAVE: Error Rendering View[/home.xhtml]
 
  *java.util.NoSuchElementException*
 
at java.util.StringTokenizer.nextToken(*StringTokenizer.java:332*)
 
at org.apache.myfaces.tobago.context.ResourceManagerImpl.getPaths
 (*
  ResourceManagerImpl.java:180*)
 
at
 org.apache.myfaces.tobago.context.ResourceManagerImpl.getRenderer(*
  ResourceManagerImpl.java:341*)
 
at org.apache.myfaces.tobago.renderkit.TobagoRenderKit.getRenderer
 (*
  TobagoRenderKit.java:64*)
 
at javax.faces.component.UIComponentBase.getRenderer(*
  UIComponentBase.java:1206*)
 
at javax.faces.component.UIComponentBase.encodeBegin(*
  UIComponentBase.java:786*)
 
at javax.faces.component.UIComponent.encodeAll(*UIComponent.java
 :884*)
 
at javax.faces.component.UIComponent.encodeAll(*UIComponent.java
 :892*)
 
at com.sun.facelets.FaceletViewHandler.renderView(*
  FaceletViewHandler.java:592*)
 
at org.ajax4jsf.application.ViewHandlerWrapper.renderView(*
  ViewHandlerWrapper.java:108*)
 
at org.ajax4jsf.application.AjaxViewHandler.renderView(*
  AjaxViewHandler.java:243*)
 
at
 org.apache.myfaces.tobago.lifecycle.RenderResponseExecutor.execute(
  *RenderResponseExecutor.java:56*)
 
at org.apache.myfaces.tobago.lifecycle.TobagoLifecycle.render(*
  TobagoLifecycle.java:141*)
 
at javax.faces.webapp.FacesServlet.service(*FacesServlet.java
 :245*)
 
at
 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(*
  ApplicationFilterChain.java:290*)
 
at org.apache.catalina.core.ApplicationFilterChain.doFilter(*
  ApplicationFilterChain.java:206*)
 
at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(*
  SeamFilter.java:83*)
 
at org.jboss.seam.web.MultipartFilter.doFilter(*
 MultipartFilter.java
  :85*)
 
at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(*
  SeamFilter.java:69*)
 
at org.jboss.seam.web.ExceptionFilter.doFilter(*
 ExceptionFilter.java
  :64*)
 
at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(*
  SeamFilter.java:69*)
 
at org.jboss.seam.web.RedirectFilter.doFilter(*RedirectFilter.java
 :44*
  )
 
at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(*
  SeamFilter.java:69*)
 
at org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(*
 BaseXMLFilter.java
  :141*)
 
at org.ajax4jsf.webapp.BaseFilter.doFilter(*BaseFilter.java:281*)
 
at org.jboss.seam.web.Ajax4jsfFilter.doFilter(*Ajax4jsfFilter.java
 :60*
  )
 
at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(*
  SeamFilter.java:69*)
 
at org.jboss.seam.web.LoggingFilter.doFilter(*LoggingFilter.java
 :58*)
 
at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(*
  SeamFilter.java:69*)
 
at org.jboss.seam.debug.hot.HotDeployFilter.doFilter(*
  HotDeployFilter.java:68*)
 
at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(*
  SeamFilter.java:69*)
 
at org.jboss.seam.servlet.SeamFilter.doFilter(*SeamFilter.java
 :158*)
 
at
 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(*
  ApplicationFilterChain.java:235*)
 
at org.apache.catalina.core.ApplicationFilterChain.doFilter(*
  ApplicationFilterChain.java:206*)
 
at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(*
  ReplyHeaderFilter.java:96*)
 
at
 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(*
  ApplicationFilterChain.java:235*)
 
at org.apache.catalina.core.ApplicationFilterChain.doFilter(*
  ApplicationFilterChain.java:206*)
 
at org.apache.catalina.core.StandardWrapperValve.invoke(*
  StandardWrapperValve.java:230

[tobago] Seam integration

2008-01-16 Thread Zied Hamdi
.Http11Processor.process(*
Http11Processor.java:844*)

  at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(*
Http11Protocol.java:580*)

  at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(*JIoEndpoint.java
:447*)

  at java.lang.Thread.run(*Thread.java:619*)




-- 
Zied Hamdi
www.into-i.fr
(previously in 2003)
zatreex.sf.net
?xml version=1.0 encoding=UTF-8?

!--
	* Licensed to the Apache Software Foundation (ASF) under one or more
	* contributor license agreements.  See the NOTICE file distributed with
	* this work for additional information regarding copyright ownership.
	* The ASF licenses this file to You under the Apache License, Version 2.0
	* (the License); you may not use this file except in compliance with
	* the License.  You may obtain a copy of the License at
	*
	*  http://www.apache.org/licenses/LICENSE-2.0
	*
	* Unless required by applicable law or agreed to in writing, software
	* distributed under the License is distributed on an AS IS BASIS,
	* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
	* See the License for the specific language governing permissions and
	* limitations under the License.
--

!DOCTYPE tobago-config PUBLIC
-//The Apache Software Foundation//DTD Tobago Config 1.0//EN tobago-config_1_0.dtd

tobago-config

	theme-config
		default-themerichmond/default-theme
	/theme-config

	resource-dirskins/resource-dir

	ajax-enabledtrue/ajax-enabled

/tobago-config
?xml version=1.0 ?
web-app xmlns=http://java.sun.com/xml/ns/javaee;
	xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
	xsi:schemaLocation=http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd;
	version=2.5

	!-- Ajax4jsf --

	context-param
		param-nameorg.richfaces.SKIN/param-name
		param-valueblueSky/param-value
	/context-param

	!-- Seam --

	listener
		listener-class
			org.jboss.seam.servlet.SeamListener
		/listener-class
	/listener

	filter
		filter-nameSeam Filter/filter-name
		filter-classorg.jboss.seam.servlet.SeamFilter/filter-class
	/filter

	filter-mapping
		filter-nameSeam Filter/filter-name
		url-pattern/*/url-pattern
	/filter-mapping

	servlet
		servlet-nameSeam Resource Servlet/servlet-name
		servlet-class
			org.jboss.seam.servlet.SeamResourceServlet
		/servlet-class
	/servlet

	servlet-mapping
		servlet-nameSeam Resource Servlet/servlet-name
		url-pattern/seam/resource/*/url-pattern
	/servlet-mapping

	!-- Facelets development mode (disable in production) --

	context-param
		param-namefacelets.DEVELOPMENT/param-name
		param-valuetrue/param-value
	/context-param

	!-- JSF --

	context-param
		param-namejavax.faces.DEFAULT_SUFFIX/param-name
		param-value.xhtml/param-value
	/context-param

	servlet
		servlet-nameFaces Servlet/servlet-name
		servlet-classjavax.faces.webapp.FacesServlet/servlet-class
		load-on-startup1/load-on-startup
	/servlet

	servlet-mapping
		servlet-nameFaces Servlet/servlet-name
		url-pattern*.seam/url-pattern
	/servlet-mapping

	!-- Tobago config start --
	servlet
		servlet-nameResourceServlet/servlet-name
		servlet-class
			org.apache.myfaces.tobago.servlet.ResourceServlet
		/servlet-class
	/servlet

	servlet-mapping
		servlet-nameResourceServlet/servlet-name
		url-pattern
			/org/apache/myfaces/tobago/renderkit/*
		/url-pattern
	/servlet-mapping

	listener
		listener-class
			org.apache.myfaces.tobago.webapp.TobagoServletContextListener
		/listener-class
	/listener
	!-- Tobago config end--

	security-constraint
		display-nameRestrict raw XHTML Documents/display-name
		web-resource-collection
			web-resource-nameXHTML/web-resource-name
			url-pattern*.xhtml/url-pattern
		/web-resource-collection
		auth-constraint /
	/security-constraint



/web-app
?xml version='1.0' encoding='UTF-8'?
faces-config version=1.2
  xmlns=http://java.sun.com/xml/ns/javaee;
  xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
  xsi:schemaLocation=http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-facesconfig_1_2.xsd;

   application
  locale-config
		default-localeen/default-locale
  /locale-config
  view-handlercom.sun.facelets.FaceletViewHandler/view-handler
   /application

/faces-config


Re: [tobago] is ti seam compatible?

2008-01-14 Thread Zied Hamdi
Hi Bernd,
It's ok for me, I'll give it a try and report any encoutred problems (with
the example sources) as soon as I'll be ready for that: I'm still learning
Seam.

Regards,
Zied

2008/1/14, Bernd Bohmann [EMAIL PROTECTED]:

 Hello Zied,

 unfortunatley I have not the time to setup a seam tobago test project.

 Tobago should support client and server side state saving with or
 without ajax requests. I would like to help everyone who tries to setup
 a tobago seam example. Spring Web Flow, Apache Orchestra and Apache
 Shale Dialog are on my wishlist too.

 Regards

 Bernd

 Zied Hamdi schrieb:
  Hi,
 
  Rereading my mail, I've discovered it isn't very comprehensive. The
 question
  was: is Tobago compatible with Seam.
 
  Did anyone try to integrate Tobago with Rich Faces?
 
  I think the fact that Seam, Rich Faces, JBoss, and Hibernate are
 developped
  under the same group is a handicap for other JSF products. Mainly
 because
  Seam is really the next generation web framework so it has lots of
 good
  ideas to simplify developement and maintainance. I think that being out
 of
  the movement is a big risk for any JSF implementation to be eliminated
 just
  because it costs 'comparatively' a lot more to develop with.
 
  What do you think about it?
 
  Regards,
  Zied
 
  2008/1/11, Zied Hamdi [EMAIL PROTECTED]:
  Hi,
 
  I'm learning Seam to use it in my Tobao project. I've found some posts
  like
  http://lists.jboss.org/pipermail/jboss-user/2006-August/007561.html
  or
  http://www.mail-archive.com/users@myfaces.apache.org/msg28872.html
 
  But all are too old to be considered as the answer. Did some changes
 arise
  from that period?
 
  Regards,
  --
  Zied Hamdi
  www.into-i.fr
 
 
 
 




-- 
Zied Hamdi
www.into-i.fr
(previously in 2003)
zatreex.sf.net


Re: [tobago] is ti seam compatible?

2008-01-13 Thread Zied Hamdi
Hi,

Rereading my mail, I've discovered it isn't very comprehensive. The question
was: is Tobago compatible with Seam.

Did anyone try to integrate Tobago with Rich Faces?

I think the fact that Seam, Rich Faces, JBoss, and Hibernate are developped
under the same group is a handicap for other JSF products. Mainly because
Seam is really the next generation web framework so it has lots of good
ideas to simplify developement and maintainance. I think that being out of
the movement is a big risk for any JSF implementation to be eliminated just
because it costs 'comparatively' a lot more to develop with.

What do you think about it?

Regards,
Zied

2008/1/11, Zied Hamdi [EMAIL PROTECTED]:

 Hi,

 I'm learning Seam to use it in my Tobao project. I've found some posts
 like
 http://lists.jboss.org/pipermail/jboss-user/2006-August/007561.html
 or
 http://www.mail-archive.com/users@myfaces.apache.org/msg28872.html

 But all are too old to be considered as the answer. Did some changes arise
 from that period?

 Regards,
 --
 Zied Hamdi
 www.into-i.fr




-- 
Zied Hamdi
www.into-i.fr
(previously in 2003)
zatreex.sf.net


[tobago] is ti seam compatible?

2008-01-11 Thread Zied Hamdi
Hi,

I'm learning Seam to use it in my Tobao project. I've found some posts like
http://lists.jboss.org/pipermail/jboss-user/2006-August/007561.html
or
http://www.mail-archive.com/users@myfaces.apache.org/msg28872.html

But all are too old to be considered as the answer. Did some changes arise
from that period?

Regards,
-- 
Zied Hamdi
www.into-i.fr


[tobago] renderedPartially sends the request two times

2008-01-10 Thread Zied Hamdi
Hi,

I'm trying to debug what happens in my app after a click on a link with
partial rendering. The problem is that sth like 2 seconds after the first
request, another request is posted (and that one seems to be not partial
because the result is different). I suppose that when an ajax request times
out, you send a traditional request. How is it possible to disable this
feature?

Regards,
Zied


[tobago] tc:panel, tc:box, and maybe tc:sheet onChange attribute

2008-01-09 Thread Zied Hamdi
Hi pioneers,

Before submitting a feature request I'd like to be sure there's no way to do
what I want today:

I need to keep do an action on any change inside a panel, this is a frequent
case in UI developement: e.g: to enable a save button or open a popup 'do
you want to save changes'.

A few years ago I made an analogous mecanism in swing: I extended Panel.add()
(and remove()) and made it add a listener to the added component to check if
changes has occured). The extended panel must it self implement the onChange
event features and interfaces to respond to nested panels events (and
forward them to its parent).

Is a feature like this available in Tobago (maybe through a facelet)? If
not, do you think it's a good idea to add a feature request in this sens?

Regards,
Zied


Re: [tobago] tc:panel, tc:box, and maybe tc:sheet onChange attribute

2008-01-09 Thread Zied Hamdi
Hi Helmut,

Done at https://issues.apache.org/jira/browse/TOBAGO-586.

Regards,
Zied


2008/1/9, Zied Hamdi [EMAIL PROTECTED]:

 Hi Helmut,

 Thanks for your fast reply. The intent of this feature is to avoid adding
 and maintaining js listeners (and mainly because we are human, forgetting
 some comps when changing the form).

 So thanks again. I'll add a feature request.

 Regards,
 Zied

 2008/1/9, Helmut Swaczinna [EMAIL PROTECTED]:
 
   Hi,
 
  I think this should be a feature of the form and not of the layout
  components. And yes, it would be nice
  to have a feature like this.
 
  In the meantime you can do this with javascript. Iterate over all
  elements of the form and add
  an onchange listener to each input element.
 
  Regards
  Helmut
 
  - Original Message -
  *From:* Zied Hamdi [EMAIL PROTECTED]
  *To:* MyFaces users@myfaces.apache.org
  *Sent:* Wednesday, January 09, 2008 10:55 AM
  *Subject:* [tobago] tc:panel, tc:box, and maybe tc:sheet onChange
  attribute
 
 
  Hi pioneers,
 
  Before submitting a feature request I'd like to be sure there's no way
  to do what I want today:
 
  I need to keep do an action on any change inside a panel, this is a
  frequent case in UI developement: e.g: to enable a save button or open a
  popup 'do you want to save changes'.
 
  A few years ago I made an analogous mecanism in swing: I extended
  Panel.add() (and remove()) and made it add a listener to the added
  component to check if changes has occured). The extended panel must it self
  implement the onChange event features and interfaces to respond to nested
  panels events (and forward them to its parent).
 
  Is a feature like this available in Tobago (maybe through a facelet)? If
  not, do you think it's a good idea to add a feature request in this sens?
 
  Regards,
  Zied
 
 


 --
 Zied Hamdi
 zatreex.sourceforge.net




-- 
Zied Hamdi
zatreex.sourceforge.net


Re: [tobago] tc:panel, tc:box, and maybe tc:sheet onChange attribute

2008-01-09 Thread Zied Hamdi
Hi Helmut,

Thanks for your fast reply. The intent of this feature is to avoid adding
and maintaining js listeners (and mainly because we are human, forgetting
some comps when changing the form).

So thanks again. I'll add a feature request.

Regards,
Zied

2008/1/9, Helmut Swaczinna [EMAIL PROTECTED]:

  Hi,

 I think this should be a feature of the form and not of the layout
 components. And yes, it would be nice
 to have a feature like this.

 In the meantime you can do this with javascript. Iterate over all elements
 of the form and add
 an onchange listener to each input element.

 Regards
 Helmut

 - Original Message -
 *From:* Zied Hamdi [EMAIL PROTECTED]
 *To:* MyFaces users@myfaces.apache.org
 *Sent:* Wednesday, January 09, 2008 10:55 AM
 *Subject:* [tobago] tc:panel, tc:box, and maybe tc:sheet onChange
 attribute


 Hi pioneers,

 Before submitting a feature request I'd like to be sure there's no way to
 do what I want today:

 I need to keep do an action on any change inside a panel, this is a
 frequent case in UI developement: e.g: to enable a save button or open a
 popup 'do you want to save changes'.

 A few years ago I made an analogous mecanism in swing: I extended
 Panel.add() (and remove()) and made it add a listener to the added
 component to check if changes has occured). The extended panel must it self
 implement the onChange event features and interfaces to respond to nested
 panels events (and forward them to its parent).

 Is a feature like this available in Tobago (maybe through a facelet)? If
 not, do you think it's a good idea to add a feature request in this sens?

 Regards,
 Zied




-- 
Zied Hamdi
zatreex.sourceforge.net


Re: [Tobago] table scroller

2008-01-08 Thread Zied Hamdi
Hi Volker,

Thanks a lot for your answer, sorry for the late answer I wasn't here
yesterday. Your mail explains lots of things.

I agree with you that the presence of a property rowHeight could help.



*what is the colums attribute of the sheet ?
I would expect something like 20px;1*;1*, *
**

You're right, at two pixels of precision: It was 18px;*;* ;-)

Regards,
Zied

*
* 2008/1/7, Volker Weber [EMAIL PROTECTED]:

 Hi Zied,

 In general this should be done automatic.

 what is the colums attribute of the sheet ?
 I would expect something like 20px;1*;1*, if so the sheet should
 calculate the 1* to a size which let the space for the scrollbar
 free, if too much rows to render.

 This works only when the needed height of a row is not more than the
 Sheet.rowHeight property in the tobago-theme-config.properties, which
 is 18 (px) in the scarborough (fallback of speyside) theme.

 You can set forceVerticalScrollbar=true, on the tc:sheet tag, to force
 the space for the scrollbar.

 Maybe we should add a property rowHeight to the sheet.


 Regards,
Volker

 2008/1/4, Zied Hamdi [EMAIL PROTECTED]:
  Hi,
 
  Is it possible to have the scroller on a table (when activated) reduce
 the
  size of the table so it doesn't hide the right part?. In other terms, is
 it
  possible to make only the vertical scroller show when there are too much
  lines?
 
  Thanks in advance,
  Zied
 
 


 --
 inexso - information exchange solutions GmbH
 Bismarckstraße 13  | 26122 Oldenburg
 Tel.: +49 441 4082 356 |
 FAX:  +49 441 4082 355 | www.inexso.de




-- 
Zied Hamdi
zatreex.sourceforge.net


Re: [Tobago] table scroller

2008-01-08 Thread Zied Hamdi
Ok,
https://issues.apache.org/jira/browse/TOBAGO-585

Regards,
Zied


2008/1/8, Volker Weber [EMAIL PROTECTED]:

 Hi,

 
  I agree with you that the presence of a property rowHeight could help.
 

 please add a jira feature request.


 Regards,
Volker

 2008/1/8, Zied Hamdi [EMAIL PROTECTED]:
  Hi Volker,
 
  Thanks a lot for your answer, sorry for the late answer I wasn't here
  yesterday. Your mail explains lots of things.
 
  I agree with you that the presence of a property rowHeight could help.
 
 
 
  what is the colums attribute of the sheet ?
  I would expect something like 20px;1*;1*,
 
  You're right, at two pixels of precision: It was 18px;*;* ;-)
 
  Regards,
  Zied
 
 
  2008/1/7, Volker Weber [EMAIL PROTECTED]:
 
   Hi Zied,
  
   In general this should be done automatic.
  
   what is the colums attribute of the sheet ?
   I would expect something like 20px;1*;1*, if so the sheet should
   calculate the 1* to a size which let the space for the scrollbar
   free, if too much rows to render.
  
   This works only when the needed height of a row is not more than the
   Sheet.rowHeight property in the tobago-theme-config.properties, which
   is 18 (px) in the scarborough (fallback of speyside) theme.
  
   You can set forceVerticalScrollbar=true, on the tc:sheet tag, to force
   the space for the scrollbar.
  
   Maybe we should add a property rowHeight to the sheet.
  
  
   Regards,
  Volker
  
   2008/1/4, Zied Hamdi [EMAIL PROTECTED]:
Hi,
   
Is it possible to have the scroller on a table (when activated)
 reduce
  the
size of the table so it doesn't hide the right part?. In other
 terms, is
  it
possible to make only the vertical scroller show when there are too
 much
lines?
   
Thanks in advance,
Zied
   
   
  
  
   --
   inexso - information exchange solutions GmbH
   Bismarckstraße 13  | 26122 Oldenburg
   Tel.: +49 441 4082 356 |
   FAX:  +49 441 4082 355 | www.inexso.de
  
 
 
 
  --
  Zied Hamdi
  zatreex.sourceforge.net


 --
 inexso - information exchange solutions GmbH
 Bismarckstraße 13  | 26122 Oldenburg
 Tel.: +49 441 4082 356 |
 FAX:  +49 441 4082 355 | www.inexso.de




-- 
Zied Hamdi
zatreex.sourceforge.net


Re: [tobago] tc:time disable att doesn't work

2008-01-07 Thread Zied Hamdi
Hi Bernd,

Thanks, sorry I didn't look at issues :-o.

Regards,
Zied


2008/1/7, Bernd Bohmann [EMAIL PROTECTED]:

 Hello Zied,

 See:
 https://issues.apache.org/jira/browse/TOBAGO-583

 Maybe we will backport this issue to a 1.0.14 release.

 Regards

 Bernd

 Zied Hamdi schrieb:
  Hi,
 
  I'm unable to disable a tc:time is it a misuse?
 
  Regards,
  Zied
 




-- 
Zied Hamdi
zatreex.sourceforge.net


[tobago] tc:time disable att doesn't work

2008-01-04 Thread Zied Hamdi
Hi,

I'm unable to disable a tc:time is it a misuse?

Regards,
Zied


[Tobago] table scroller

2008-01-04 Thread Zied Hamdi
Hi,

Is it possible to have the scroller on a table (when activated) reduce the
size of the table so it doesn't hide the right part?. In other terms, is it
possible to make only the vertical scroller show when there are too much
lines?

Thanks in advance,
Zied
attachment: table scrollbar.PNG

[tobago] Layouting problem

2007-12-19 Thread Zied Hamdi
Hi island people :-)

I have some trouble understanding how layouting works: (you can see the
trouble in images (attached)).
All the scrollbars you see result from the following simple snippet : (the
orange background can even be removed: I tried to remove the outer scroll by
enforcing the box to be smaller)


  tc:tabGroup



tc:tab label=#{i18n.planning}

 f:facet name=layout

   tc:gridLayout rows=160px /

 /f:facet



 tc:box id=taskTablePanel

   f:facet name=toolBar

 tc:toolBar

   tc:toolBarCommand

 image=image/new.GIF

 action=#{
contractCtrl.newTaskCmd}

 tip=|nouvelle tache

   /tc:toolBarCommand

 /tc:toolBar

   /f:facet

   f:facet name=layout

 tc:gridLayout rows=130px /

   /f:facet



   ui:include src=/contract/taskTable.xhtml
/



 /tc:box

/tc:tab

In my include I have directly a tc:sheet. I've also attempted to use
pagingLength=3 to have the table max size smaller, the table continues
to show more than 3 rows at a time.
Can you please send me to a doc where i can have a better understanding of
how sizes are computed?


Regards,
Zied
attachment: table.PNG

[jsf][gravel][facelets][tobago] How can we define a comp id namespace?

2007-12-17 Thread Zied Hamdi
Hi,

I have a problem with reusability of components: I have many jsf template
pages that I use everywhere throughout my app. The problem is that when
I define explicitely the ids of my UIComps, name collisions occur.

The question is: is there a way to define a sort of namespace component
holder so that my components have ids of type *page:namespace1:namespace2
:realComponentId*
this whould be the id of a component like this:
tc:page id=*page*
   f:namespace id=*namespace1*
 f:namespace id=*namespace2*
  tc:out id=*realComponentId*/
/f:namespace
  /f:namespace
/tc:page

To be more explicit about the problem: Today I'm passing in every include a
parameter (idSuffix) that I append to the id:

*clientPage.xhtml*
ui:include src=compPage.xhtml
  ui:param name=idSuffix value=clientPage
/ui:include

*compPage.xhtml*
tc:in id=personsTree#{idSuffix} /

what is even more tedious is when I use another template in the included
template itself. I must pass idSuffix through :
  ui:param name=idSuffix value=#{idSuffix}


So does a namespace feature exist in standard JSF maybe tobago, or
maybe gravel?

Regards,
Zied


Re: [jsf][gravel][facelets][tobago] How can we define a comp id namespace?

2007-12-17 Thread Zied Hamdi
Thank you Simon,

I'll remove all my ugly code with id construction :-).

Regards,
Zied


2007/12/17, simon [EMAIL PROTECTED]:


 On Mon, 2007-12-17 at 12:29 +0100, Zied Hamdi wrote:
  Hi,
 
  I have a problem with reusability of components: I have many jsf
  template pages that I use everywhere throughout my app. The problem is
  that when I define explicitely the ids of my UIComps, name collisions
  occur.
 
  The question is: is there a way to define a sort of namespace
  component holder

 Yes, it's called f:subview. Just wrap that around every include
 statement.

 Interestingly, I thought that facelets did this automatically, and that
 f:subview was only needed for jsp includes. But obviously I'm wrong..

 Regards,

 Simon




-- 
Zied Hamdi
zatreex.sourceforge.net


Re: [Tobago] tx:date and onchange

2007-12-16 Thread Zied Hamdi
Hi,

Is there a way to include static content as is to handle cases like this:
I'm thinking about a tag attribute common to all comps where we can transmit
all we want to transmit to the target HTML tag e.g:

tc:date *native=onclick='clicked()' style='border=1px' * /

This could allow us to have an ugly-but-working page if the feature is not
implemented yet :-).

Regards,
Zied

2007/12/16, Bernd Bohmann [EMAIL PROTECTED]:

 Hello Michael,

 this is on my wish list, too.

 Can you add an issue for this, please.

 The tile should be: 'Adding facet onchange support to tc:date' or
 something else.

 Regards

 Bernd

 Michał 'Gandalf' Stawicki schrieb:
  hello,
 
  I wish to launch some action upon selecting date from datapicker. I
  have already tried setting onchange attribute, facet onchange and
  adding onchange event to date's input field. All of this have failed.
 
  Does anyone know how to achieve this?
 
  regards,
  michael
 




-- 
Zied Hamdi
zatreex.sourceforge.net


Re: [tomahawk] shedule doesn't call model.setSelectedEntry(ScheduleEntry selectedEntry)

2007-12-14 Thread Zied Hamdi
 string.

resourceDirs = '[skins, org/apache/myfaces/tobago/renderkit]' contentType =
'html' theme = 'richmond' browser = 'mozilla_5_0' subDir = 'property' name =
'into-i' suffix = '' key = 'today'

09:39:05,468 INFO [STDOUT] 2007-12-14 09:39:05,453 [http-127.0.0.1-8080-2]
ERROR org.apache.myfaces.tobago.context.ResourceManagerImpl.getPaths(265) -
Path not found, and no fallback. Using empty string.

resourceDirs = '[skins, org/apache/myfaces/tobago/renderkit]' contentType =
'html' theme = 'richmond' browser = 'mozilla_5_0' subDir = 'tag' name = '
org.apache.myfaces.ScheduleRenderer' suffix = '' key = 'null'

09:39:05,468 INFO [STDOUT] 2007-12-14 09:39:05,468 [http-127.0.0.1-8080-2]
ERROR org.apache.myfaces.tobago.context.ResourceManagerImpl.getRenderer(348)
- Don't find any RendererClass for org.apache.myfaces.ScheduleRenderer.
Please check you configuration.

09:39:05,531 INFO [STDOUT] 2007-12-14 09:39:05,531 [http-127.0.0.1-8080-2]
ERROR org.apache.myfaces.tobago.context.ResourceManagerImpl.getPaths(265) -
Path not found, and no fallback. Using empty string.

resourceDirs = '[skins, org/apache/myfaces/tobago/renderkit]' contentType =
'html' theme = 'richmond' browser = 'mozilla_5_0' subDir = 'tag' name = '
org.apache.myfaces.ScheduleRenderer' suffix = '' key = 'null'

09:39:05,531 INFO [STDOUT] 2007-12-14 09:39:05,531 [http-127.0.0.1-8080-2]
ERROR org.apache.myfaces.tobago.context.ResourceManagerImpl.getRenderer(348)
- Don't find any RendererClass for org.apache.myfaces.ScheduleRenderer.
Please check you configuration.

09:39:05,625 INFO [STDOUT] 2007-12-14 09:39:05,625 [http-127.0.0.1-8080-2]
ERROR org.apache.myfaces.tobago.context.ResourceManagerImpl.getPaths(265) -
Path not found, and no fallback. Using empty string.

resourceDirs = '[skins, org/apache/myfaces/tobago/renderkit]' contentType =
'html' theme = 'richmond' browser = 'mozilla_5_0' subDir = 'tag' name = '
org.apache.myfaces.ScheduleRenderer' suffix = '' key = 'null'

09:39:05,640 INFO [STDOUT] 2007-12-14 09:39:05,625 [http-127.0.0.1-8080-2]
ERROR org.apache.myfaces.tobago.context.ResourceManagerImpl.getRenderer(348)
- Don't find any RendererClass for org.apache.myfaces.ScheduleRenderer.
Please check you configuration.

09:39:05,703 INFO [STDOUT] 2007-12-14 09:39:05,703 [http-127.0.0.1-8080-2]
ERROR org.apache.myfaces.tobago.context.ResourceManagerImpl.getPaths(265) -
Path not found, and no fallback. Using empty string.

resourceDirs = '[skins, org/apache/myfaces/tobago/renderkit]' contentType =
'html' theme = 'richmond' browser = 'mozilla_5_0' subDir = 'tag' name = '
org.apache.myfaces.ScheduleRenderer' suffix = '' key = 'null'

09:39:05,703 INFO [STDOUT] 2007-12-14 09:39:05,703 [http-127.0.0.1-8080-2]
ERROR org.apache.myfaces.tobago.context.ResourceManagerImpl.getRenderer(348)
- Don't find any RendererClass for org.apache.myfaces.ScheduleRenderer.
Please check you configuration.

09:39:05,765 INFO [STDOUT] 2007-12-14 09:39:05,765 [http-127.0.0.1-8080-2]
TRACE org.apache.myfaces.tobago.util.DebugPhaseListener.afterPhase(51) -
After Phase :RENDER_RESPONSE 6 Time=1197621545765

09:39:05,765 INFO [STDOUT] 2007-12-14 09:39:05,765 [http-127.0.0.1-8080-2]
DEBUG org.apache.myfaces.tobago.util.DebugPhaseListener.afterPhase(58) -
Phase RENDER_RESPONSE 6 needs 531 milliseconds

09:39:05,765 INFO [STDOUT] 2007-12-14 09:39:05,765 [http-127.0.0.1-8080-2]
INFO org.apache.myfaces.tobago.util.DebugPhaseListener.afterPhase(65) -
Total response time : 2469 milliseconds


2007/12/13, Zied Hamdi [EMAIL PROTECTED]:

 Hi again,

 A gmail shortcut sent the mail before I finish :-).

 So when I click on a schedule entry, I verify the javascript has modified
 the hidden input (with the id given to the t:schedule), then I wait in my
 model.setSelectedEntry(ScheduleEntry selectedEntry)   with a breakpoint,
 this never happens, the page is reloaded but no selected entry is set.

 The action attribute (if filled in) is not executed too.

 I also have on mouse overs lot of js errors uner firefox 2.0.0.11 but I
 don't think it's the cause (no errors on mouse click):
  event is not defined
  domLib.js
  Line: 535

 Any suggestion will be appreciated.

 Regards,
 Zied


 2007/12/13, Zied Hamdi [EMAIL PROTECTED]:
 
  Hi,
 
  I have a problem selecting
 
  --
  Zied Hamdi
  zatreex.sourceforge.net
 



 --
 Zied Hamdi
 zatreex.sourceforge.net




-- 
Zied Hamdi
zatreex.sourceforge.net


[Tomahawk] [tobago] Schedule throws a js exception on entry selection

2007-12-13 Thread Zied Hamdi
Hi All,

I have entred this problem earlier when I was in time evalution phasis.
Today I'm concretely in dev mode and I don't have any solution (I was
thinking ti was because of the context : tobago layouting etc.., so I
simplified to the basis): here's my page it's the same one as in the
tomahawk examples 1:


html

body

f:view

  xmlns=http://www.w3.org/1999/xhtml;

  xmlns:t=http://myfaces.apache.org/tomahawk;

  xmlns:tc=http://myfaces.apache.org/tobago/component;

  xmlns:tx=http://myfaces.apache.org/tobago/extension;

  xmlns:h=http://java.sun.com/jsf/html;

  xmlns:f=http://java.sun.com/jsf/core;

  h:form

!--  The schedule itself --

div style=position: absolute; left: 220px; top: 5px; right:
5px;t:schedule

  value=#{contractCtrl.scheduleModel.model}

  id=schedule1

  rendered=true

  visibleEndHour=18

  visibleStartHour=8

  workingEndHour=17

  workingStartHour=9

  readonly=false

  theme=evolution

  tooltip=true //div

  /h:form

/f:view

/body

/html


It doesn't use anything more than facelets. What I receive is
Erreur : document.forms[formId] has no properties
Fichier source :
http://localhost:8080/IntoServicesWeb/faces/myFacesExtensionResource/org.apache.myfaces.renderkit.html.util.MyFacesResourceLoader/11975349/schedule.HtmlSchedule/javascript/schedule.js
Ligne : 33

I have the tomahawk example app myfaces-example-simple-1.1.7-SNAPSHOT.war
running on the same server without problems, so I think the only difference
is the WEB-INF/lib directory: here's my app contents:
02/10/2006  20:0363ÿ966 avalon-framework-4.1.3.jar
03/09/2007  17:0548ÿ742 common-annotations.jar
20/09/2006  17:30   188ÿ671 commons-beanutils-1.7.0.jar
04/09/2007  14:21   188ÿ671 commons-beanutils.jar
15/11/2006  10:1646ÿ725 commons-codec-1.3.jar
20/09/2006  17:30   559ÿ366 commons-collections-3.1.jar
04/09/2007  14:21   559ÿ366 commons-collections.jar
20/09/2006  17:30   139ÿ966 commons-digester-1.7.jar
04/09/2007  14:21   139ÿ966 commons-digester.jar
31/12/2006  17:01   112ÿ341 commons-el-1.0.jar
25/01/2007  18:3631ÿ909 commons-fileupload-1.1.1.jar
20/09/2006  17:3561ÿ562 commons-io-1.1.jar
20/09/2006  17:30   207ÿ723 commons-lang-2.1.jar
20/09/2006  18:3552ÿ915 commons-logging-1.1.jar
16/06/2007  23:1072ÿ009 el-impl-1.0.jar
13/12/2007  09:49 0 info.txt
18/12/2006  22:05   298ÿ368 jsf-facelets.jar
03/09/2007  17:0530ÿ483 jsf-tlds.jar
13/03/2007  17:03   367ÿ444 log4j-1.2.14.jar
02/10/2006  20:0372ÿ150 logkit-1.0.1.jar
16/06/2007  23:10 6ÿ882 maven-repository-importer-1.1.jar
19/10/2007  06:30   577ÿ125 tobago-core-1.0.12.jar
07/10/2007  01:2562ÿ217 tobago-facelets-1.0.12-SNAPSHOT.jar
07/10/2007  01:2510ÿ728 tobago-fileupload-1.0.12-SNAPSHOT.jar
19/10/2007  06:5912ÿ540 tobago-theme-charlotteville-1.0.12.jar
19/10/2007  06:5635ÿ458 tobago-theme-richmond-1.0.12.jar
19/10/2007  06:45   254ÿ130 tobago-theme-scarborough-1.0.12.jar
19/10/2007  06:5160ÿ566 tobago-theme-speyside-1.0.12.jar
19/10/2007  06:3984ÿ940 tobago-theme-standard-1.0.12.jar
06/11/2007  13:44 2ÿ962ÿ674 tomahawk-1.1.7-SNAPSHOT.jar
02/10/2007  14:23 9ÿ376 tomahawk-facelets-1.1.6.jar

I don't have anything special in my conf files.

Please if anyone has noticed an analogous problem, any hints will be greatly
appreciated.

Thanks,
Zied


Re: [Tomahawk] [tobago] Schedule throws a js exception on entry selection

2007-12-13 Thread Zied Hamdi
Hi Again,

Examining the generated code further I have found this problem:

the call is made from cells like this one:

trtd style=width: 100%; onmouseover=return
makeTrue(domTT_activate(this, event, 'caption', 'Menage', 'content',
'lt;igt;Alice du fourlt;/igt;', 'trail', true));a href=#
onmouseup=fireEntrySelected('page', 'page:schedule', '360452');div
class=text style=height: 100%; width: 100%;18:49:
Menage/div/a/td/tr

whereas my form's name is

form name=page::form
action=/IntoServicesWeb/contract/contract.jsf id=page::form
method=post accept-charset=utf-8

That's why the call document.forms[formId] with formId='page' returns null.

Now that I know this, what do I have to do with it?

Any ideas?






2007/12/13, Zied Hamdi [EMAIL PROTECTED]:

 Hi All,

 I have entred this problem earlier when I was in time evalution phasis.
 Today I'm concretely in dev mode and I don't have any solution (I was
 thinking ti was because of the context : tobago layouting etc.., so I
 simplified to the basis): here's my page it's the same one as in the
 tomahawk examples 1:


  html

  body

  f:view

   xmlns= http://www.w3.org/1999/xhtml;

   xmlns:t= http://myfaces.apache.org/tomahawk;

   xmlns:tc= http://myfaces.apache.org/tobago/component;

   xmlns:tx= http://myfaces.apache.org/tobago/extension;

   xmlns:h= http://java.sun.com/jsf/html;

   xmlns:f= http://java.sun.com/jsf/core;

   h:form 

 !--  The schedule itself --

  div style =position: absolute; left: 220px; top: 5px;
 right: 5px; t:schedule

   value =#{contractCtrl.scheduleModel.model}

   id =schedule1

   rendered =true

   visibleEndHour =18

   visibleStartHour =8

   workingEndHour =17

   workingStartHour =9

   readonly =false

   theme =evolution

   tooltip =true //div 

   / h:form

 / f:view

 / body

 / html


 It doesn't use anything more than facelets. What I receive is
 Erreur : document.forms[formId] has no properties
 Fichier source :
 http://localhost:8080/IntoServicesWeb/faces/myFacesExtensionResource/org.apache.myfaces.renderkit.html.util.MyFacesResourceLoader/11975349/schedule.HtmlSchedule/javascript/schedule.js
 Ligne : 33

 I have the tomahawk example app myfaces-example-simple-1.1.7-SNAPSHOT.war
 running on the same server without problems, so I think the only difference
 is the WEB-INF/lib directory: here's my app contents:
 02/10/2006  20:0363ÿ966 avalon-framework-4.1.3.jar
 03/09/2007  17:0548ÿ742 common-annotations.jar
 20/09/2006  17:30   188ÿ671 commons-beanutils-1.7.0.jar
 04/09/2007  14:21   188ÿ671 commons-beanutils.jar
 15/11/2006  10:1646ÿ725 commons-codec-1.3.jar
 20/09/2006  17:30   559ÿ366 commons-collections-3.1.jar
 04/09/2007  14:21   559ÿ366 commons-collections.jar
 20/09/2006  17:30   139ÿ966 commons-digester-1.7.jar
 04/09/2007  14:21   139ÿ966 commons-digester.jar
 31/12/2006  17:01   112ÿ341 commons-el-1.0.jar
 25/01/2007  18:3631ÿ909 commons-fileupload-1.1.1.jar
 20/09/2006  17:3561ÿ562 commons-io-1.1.jar
 20/09/2006  17:30   207ÿ723 commons-lang-2.1.jar
 20/09/2006  18:3552ÿ915 commons-logging-1.1.jar
 16/06/2007  23:1072ÿ009 el-impl-1.0.jar
 13/12/2007  09:49 0 info.txt
 18/12/2006  22:05   298ÿ368 jsf-facelets.jar
 03/09/2007  17:0530ÿ483 jsf-tlds.jar
 13/03/2007  17:03   367ÿ444 log4j-1.2.14.jar
 02/10/2006  20:0372ÿ150 logkit-1.0.1.jar
 16/06/2007  23:10 6ÿ882 maven-repository-importer-1.1.jar
 19/10/2007  06:30   577ÿ125 tobago-core-1.0.12.jar
 07/10/2007  01:2562ÿ217 tobago-facelets-1.0.12-SNAPSHOT.jar
 07/10/2007  01:2510ÿ728 tobago-fileupload-1.0.12-SNAPSHOT.jar
 19/10/2007  06:5912ÿ540 tobago-theme-charlotteville-1.0.12.jar
 19/10/2007  06:5635ÿ458 tobago-theme-richmond-1.0.12.jar
 19/10/2007  06:45   254ÿ130 tobago-theme-scarborough-1.0.12.jar
 19/10/2007  06:5160ÿ566 tobago-theme-speyside-1.0.12.jar
 19/10/2007  06:3984ÿ940 tobago-theme-standard-1.0.12.jar
 06/11/2007  13:44 2ÿ962ÿ674 tomahawk-1.1.7-SNAPSHOT.jar
 02/10/2007  14:23 9ÿ376 tomahawk-facelets-1.1.6.jar

 I don't have anything special in my conf files.

 Please if anyone has noticed an analogous problem, any hints will be
 greatly appreciated.

 Thanks,
 Zied




-- 
Zied Hamdi
zatreex.sourceforge.net


Re: [Tomahawk] [tobago] Schedule throws a js exception on entry selection

2007-12-13 Thread Zied Hamdi
That's exactly what I didn't want to hear :-). Thanks for the patch, I'll
give it a try and tell you if it works.

Regards,
Zied



2007/12/13, Volker Weber [EMAIL PROTECTED]:

 Hi,

 i think the t:schedule could not be used inside tobago.

 it looks like the schedule component looks for the first parent UIForm
 and takes this id as the id for a html form tag to submit. This can't
 work in tobago, because there is only one html form tag surrounding
 all content.
 And nesting form tags is not allowed in html.

 We can't fix this in tobago, to make the schedule work in tobago there
 must added a workarround in the schedule's javascript to find the root
 form tag.


 Regards,
Volker




 2007/12/13, Zied Hamdi [EMAIL PROTECTED]:
  Hi Volker,
 
  Thank you for your fast reply. I'm sorry the preceding mail was against
  another source code (as in my app).
 
  But what I noticed is that, because tc:page creates a form alone, the
 form
  id is always pageId::form
 
  The tomahawk schedule seams to search for a form with the same name as
  pageId when no explicit form is specified:
 
 
 
   tc:page
 
xmlns= http://www.w3.org/1999/xhtml;
 
xmlns:t= http://myfaces.apache.org/tomahawk;
 
xmlns:tc=
  http://myfaces.apache.org/tobago/component;
 
xmlns:tx=
  http://myfaces.apache.org/tobago/extension;
 
xmlns:h= http://java.sun.com/jsf/html;
 
xmlns:f= http://java.sun.com/jsf/core;
 
id= root
 
 !--  The schedule itself --
 
  div style =position: absolute; left: 220px; top: 5px; right:
 5px;
  t:schedule
 
   value =#{contractCtrl.scheduleModel.model}
 
   id =schedule1
 
   rendered =true
 
   visibleEndHour =18
 
   visibleStartHour =8
 
   workingEndHour =17
 
   workingStartHour =9
 
   readonly =false
 
   theme =evolution
 
   tooltip= true //div 
 
  / tc:page
 
 
 
  Outputs this snippet:
 
 
 
form
 
   name =root::form
 
   action =/IntoServicesWeb/test/schedule.jsf
 
   id =root::form
 
   method =post
 
   accept-charset =utf-8 input
 
   type =hidden
 
   name =root::form-action
 
   id =root::form-action
 
   value = 
 
  div style =position: absolute; left: 220px; top: 5px; right:
 5px;
  input
 
   type =hidden
 
   name =root:schedule1 input
 
   type =hidden
 
   name =root:schedule1_last_clicked_date
  input
 
   type= hidden
 
  name=root:schedule1_last_clicked_y 
 
div
 
  class=schedule-compact-evolution
 
  style=border-style: none; overflow: hidden; 
 
table
 
   class =month
 
   style =position: relative; left: 0px; top: 0px; width:
 100%;
 
   cellpadding =0
 
   cellspacing =1
 
   border =0
 
   width =100% 
 
tbody
 
  tr
 
td
 
rowspan =2
 
class =inactive-day workday
 
style =height: 121px; width: 16.66%;
 
 
table
 
class =day
 
style =height: 121px; width: 100%;
 
cellpadding =0
 
cellspacing =0 
 
 tr
 
   td
 
class =header
 
style =height:
  18px; width: 100%; overflow: hidden
 
id
  =root:schedule1_header_20071126 26 nov. 2007 /td 
 
/ tr
 
 tr
 
   td
 
class =content
 
style =height:
  103px; width: 100%; 
 
   div
 
class
  =contentview
 
style =width:
  100%; height: 100%; overflow: auto; vertical-align: top; 
 
   div
 
style =width:
  100%; height: 100%; vertical-align: top;
 
id
  =root:schedule1_body_20071126 
 
   table style =width:
  100%; 
 
 tr
 
   td
 
style
  =width: 100%;
 
 
  onmouseover =return makeTrue(domTT_activate(this, event, 'caption

Re: [Tomahawk] [tobago] Schedule throws a js exception on entry selection

2007-12-13 Thread Zied Hamdi
Hi Volker and Simon,

replacing the method by
function fireEntrySelected(formId, scheduleId, entryId) {
   var form = document.forms[formId];
   if (form == null || form.tagName != FORM) {
   form = document.forms[formId + ::form];
   }
   form[scheduleId].value = entryId;
   form.submit();
   return true;
}

seems to work fine (I don't have js erros any more, but I still don't have
the element selected: maybe a misuse or sth) even though it can't be in the
official build, it fulfills my needs to integrate it to a tobago app.

By the way Volker, I want to verify the good selection value has been set. I
remember I saw in the mailing list that activating the TRACE mode on a comp
will show submitted request parameters values. I tried :

log4j.logger.org.apache.myfaces.tobago.component.UIPage=TRACE

log4j.logger.org.apache.myfaces.el.VariableResolverImpl=TRACE
but none shows the values. Can please remind me which one it is


Simon,

Thanks for your intervention. For me, the schedule was the component that
had (the responsibility) to find in which form it is embedded in the tree
structure(that's why I included [tomahawk] in the subject), do you think
tobago renderers a form tag without having the UIForm in the structure(2)?
or (1) tc:page is at the same time a representative of f:view and f:form
(implements both interfaces)?

I don't have any experience on developing JSF taglibs so sorry if what I say
is nonsens.



2007/12/13, Simon Kitching [EMAIL PROTECTED]:

 I don't see why t:schedule is not usable in tobago.

 Yes, it looks for a parent UIForm. With tobago, is there one in the
 component tree or not? I would certainly presume so..

 The schedule code does look for an ancestor form, but what is wrong with
 that? There should always be exactly one..

 The only problem that I can see is that when the scheduler renderer finds
 a UIForm, then emits its clientId into the javascript it outputs the right
 value. In a tobago environment, it is emitting the value root (which is
 the id property of the tobago component) rather than root::form.

 Where does root::form come from?

 I don't know much about Tobago, but would guess that either:
 (1) the tc:page component implements UIForm, or
 (2) the tc:page automatically creates a child UIForm

 In the case of (1), perhaps the component should implement
 NamingContainer, and override getClientId to return root::form or
 somesuch.

 In the case of (2), tc:page should implement NamingContainer, and set the
 id of the child UIForm component to form. Then its getClientId would
 return root:form.

 There is also the possibility that the t:schedule renderer is a little
 buggy, and is outputting into the javascript the raw componentid of the
 UIForm it finds, rather than its clientId. But if so, that is reasonably
 easily fixed.

 Regards,

 Simon

  Zied Hamdi [EMAIL PROTECTED] schrieb:
  That's exactly what I didn't want to hear :-). Thanks for the patch,
 I'll
  give it a try and tell you if it works.
 
  Regards,
  Zied
 
 
 
  2007/12/13, Volker Weber [EMAIL PROTECTED]:
  
   Hi,
  
   i think the t:schedule could not be used inside tobago.
  
   it looks like the schedule component looks for the first parent UIForm
   and takes this id as the id for a html form tag to submit. This can't
   work in tobago, because there is only one html form tag surrounding
   all content.
   And nesting form tags is not allowed in html.
  
   We can't fix this in tobago, to make the schedule work in tobago there
   must added a workarround in the schedule's javascript to find the root
   form tag.
  
  
   Regards,
  Volker
  
  
  
  
   2007/12/13, Zied Hamdi [EMAIL PROTECTED]:
Hi Volker,
   
Thank you for your fast reply. I'm sorry the preceding mail was
 against
another source code (as in my app).
   
But what I noticed is that, because tc:page creates a form alone,
 the
   form
id is always pageId::form
   
The tomahawk schedule seams to search for a form with the same name
 as
pageId when no explicit form is specified:
   
   
   
 tc:page
   
  xmlns= http://www.w3.org/1999/xhtml;
   
  xmlns:t= http://myfaces.apache.org/tomahawk;
   
  xmlns:tc=
http://myfaces.apache.org/tobago/component;
   
  xmlns:tx=
http://myfaces.apache.org/tobago/extension;
   
  xmlns:h= http://java.sun.com/jsf/html;
   
  xmlns:f= http://java.sun.com/jsf/core;
   
  id= root
   
   !--  The schedule itself --
   
div style =position: absolute; left: 220px; top: 5px;
 right:
   5px;
t:schedule
   
 value =#{contractCtrl.scheduleModel.model}
   
 id =schedule1
   
 rendered =true
   
 visibleEndHour =18
   
 visibleStartHour =8
   
 workingEndHour =17
   
 workingStartHour =9
   
 readonly =false

[tomahawk] shedule doesn't call model.setSelectedEntry(ScheduleEntry selectedEntry)

2007-12-13 Thread Zied Hamdi
Hi,

I have a problem selecting

-- 
Zied Hamdi
zatreex.sourceforge.net


Re: [Tomahawk] [tobago] Schedule throws a js exception on entry selection

2007-12-13 Thread Zied Hamdi
Thanks Volker,

You saved me a lot of frustrations. I really appreciate your help.

Regards,
Zied


2007/12/13, Volker Weber [EMAIL PROTECTED]:

 Hi Zied,

 set org.apache.myfaces.tobago.util.DebugPhaseListener to trace to log
 request parameters.
 of cause you need also to configure this listener.


 Regards,
Volker

 2007/12/13, Zied Hamdi [EMAIL PROTECTED]:
  Hi Volker and Simon,
 
  replacing the method by
  function fireEntrySelected(formId, scheduleId, entryId) {
 var form = document.forms[formId];
 if (form == null || form.tagName != FORM) {
 form = document.forms[formId + ::form];
 }
 form[scheduleId].value = entryId;
 form.submit();
 return true;
  }
 
  seems to work fine (I don't have js erros any more, but I still don't
 have
  the element selected: maybe a misuse or sth) even though it can't be in
 the
  official build, it fulfills my needs to integrate it to a tobago app.
 
  By the way Volker, I want to verify the good selection value has been
 set. I
  remember I saw in the mailing list that activating the TRACE mode on a
 comp
  will show submitted request parameters values. I tried :
 
 
  log4j.logger.org.apache.myfaces.tobago.component.UIPage=TRACE
 
  log4j.logger.org.apache.myfaces.el.VariableResolverImpl=TRACEbut
  none shows the values. Can please remind me which one it is
 
 
  Simon,
 
  Thanks for your intervention. For me, the schedule was the component
 that
  had (the responsibility) to find in which form it is embedded in the
 tree
  structure(that's why I included [tomahawk] in the subject), do you think
  tobago renderers a form tag without having the UIForm in the
 structure(2)?
  or (1) tc:page is at the same time a representative of f:view and f:form
  (implements both interfaces)?
 
  I don't have any experience on developing JSF taglibs so sorry if what I
 say
  is nonsens.
 
 
 
  2007/12/13, Simon Kitching [EMAIL PROTECTED]:
   I don't see why t:schedule is not usable in tobago.
  
   Yes, it looks for a parent UIForm. With tobago, is there one in the
  component tree or not? I would certainly presume so..
  
   The schedule code does look for an ancestor form, but what is wrong
 with
  that? There should always be exactly one..
  
   The only problem that I can see is that when the scheduler renderer
 finds
  a UIForm, then emits its clientId into the javascript it outputs the
 right
  value. In a tobago environment, it is emitting the value root (which
 is
  the id property of the tobago component) rather than root::form.
  
   Where does root::form come from?
  
   I don't know much about Tobago, but would guess that either:
   (1) the tc:page component implements UIForm, or
   (2) the tc:page automatically creates a child UIForm
  
   In the case of (1), perhaps the component should implement
  NamingContainer, and override getClientId to return root::form or
  somesuch.
  
   In the case of (2), tc:page should implement NamingContainer, and set
 the
  id of the child UIForm component to form. Then its getClientId would
  return root:form.
  
   There is also the possibility that the t:schedule renderer is a little
  buggy, and is outputting into the javascript the raw componentid of the
  UIForm it finds, rather than its clientId. But if so, that is reasonably
  easily fixed.
  
   Regards,
  
   Simon
  
    Zied Hamdi [EMAIL PROTECTED] schrieb:
That's exactly what I didn't want to hear :-). Thanks for the patch,
  I'll
give it a try and tell you if it works.
   
Regards,
Zied
   
   
   
2007/12/13, Volker Weber [EMAIL PROTECTED]:

 Hi,

 i think the t:schedule could not be used inside tobago.

 it looks like the schedule component looks for the first parent
 UIForm
 and takes this id as the id for a html form tag to submit. This
 can't
 work in tobago, because there is only one html form tag
 surrounding
 all content.
 And nesting form tags is not allowed in html.

 We can't fix this in tobago, to make the schedule work in tobago
 there
 must added a workarround in the schedule's javascript to find the
 root
 form tag.


 Regards,
Volker




 2007/12/13, Zied Hamdi [EMAIL PROTECTED]:
  Hi Volker,
 
  Thank you for your fast reply. I'm sorry the preceding mail was
  against
  another source code (as in my app).
 
  But what I noticed is that, because tc:page creates a form
 alone,
  the
 form
  id is always pageId::form
 
  The tomahawk schedule seams to search for a form with the same
 name
  as
  pageId when no explicit form is specified:
 
 
 
   tc:page
 
xmlns= http://www.w3.org/1999/xhtml;
 
xmlns:t= http://myfaces.apache.org/tomahawk;
 
xmlns:tc=
  http://myfaces.apache.org/tobago/component 
 
xmlns:tx=
  http://myfaces.apache.org/tobago

Re: [tomahawk] shedule doesn't call model.setSelectedEntry(ScheduleEntry selectedEntry)

2007-12-13 Thread Zied Hamdi
Hi again,

A gmail shortcut sent the mail before I finish :-).

So when I click on a schedule entry, I verify the javascript has modified
the hidden input (with the id given to the t:schedule), then I wait in my
model.setSelectedEntry(ScheduleEntry selectedEntry)   with a breakpoint,
this never happens, the page is reloaded but no selected entry is set.

The action attribute (if filled in) is not executed too.

I also have on mouse overs lot of js errors uner firefox 2.0.0.11 but I
don't think it's the cause (no errors on mouse click):
 event is not defined
 domLib.js
 Line: 535

Any suggestion will be appreciated.

Regards,
Zied


2007/12/13, Zied Hamdi [EMAIL PROTECTED]:

 Hi,

 I have a problem selecting

 --
 Zied Hamdi
 zatreex.sourceforge.net




-- 
Zied Hamdi
zatreex.sourceforge.net


Re: [tomahawk][tobago] can't select a schedule entry

2007-11-08 Thread Zied Hamdi
Hi Jurgen,

Thanks for your answer. Sorry I didn't look further to the bug list when it
throwed the IllegalState I rapidly put the 1.1.7 back :-).

The problem is that I'm using the tomahawk schedule inside a tobago view
root, I naturally have a tc:page that creates a form, but that's maybe not
recognized by the schedule as it maybe searches for a standard h:form. Do
you think it's the issue cause?

My context is: a layouting template in facelets with tobago as the main view
handler and tomahawk in scheduling (which is a very big vector in the app).

In the layouting template I have: tc:viewtc:page../ /

I've tried to put an explicit h:form directly around the schedule but I
still have the same error:

  h:form id=scheduleForm

t:schedule

  id=schedule

  value=#{schedule.model}

  rendered=true

  tooltip=true

  entryRenderer=#{schedule.renderer}

  headerDateFormat=EEE dd

  hourNotation=24 /

  /h:form


2007/11/8, Jurgen Lust [EMAIL PROTECTED]:

 The IllegalStateException problem was described here:
 https://issues.apache.org/jira/browse/TOMAHAWK-971

 As for the javascript error, have you put your schedule inside a h:form?


 Jurgen

 2007/11/7, Zied Hamdi [EMAIL PROTECTED]:
 
  Hi,
 
  I've beagan developing my app with the tomahawk 1.1.7 Snapshot
  (expecting it will be stable when the project will finish). Unfortunately I
  get a js error when I click on an entry:
  Erreur : document.forms[formId] has no properties
  Fichier source :
  http://localhost:8080/IntoServicesWeb/faces/myFacesExtensionResource/org.apache.myfaces.renderkit.html.util.MyFacesResourceLoader/11944520/schedule.HtmlSchedule/javascript/schedule.js
  Ligne : 33
 
  Trying t get back to 1.1.6 or 1.1.5 I have a even more serious problem:
 
  java.lang.IllegalStateException: 
  org.apache.myfaces.custom.schedule.UISchedule$ScheduleActionListener
  javax.faces.component.StateHolderSaver.restore
  (StateHolderSaver.java:98)
  
  javax.faces.component.UIComponentBase.restoreAttachedState(UIComponentBase.java:1406)
  
  javax.faces.component.UIComponentBase.restoreState(UIComponentBase.java:1272)
  org.apache.myfaces.custom.schedule.UISchedule.restoreState
  (UISchedule.java:378)
  
  org.apache.myfaces.custom.schedule.HtmlSchedule.restoreState(HtmlSchedule.java:189)
  
  javax.faces.component.UIComponentBase.processRestoreState(UIComponentBase.java:1141)
  javax.faces.component.UIComponentBase.processRestoreState
  (UIComponentBase.java:1157)
  
  javax.faces.component.UIComponentBase.processRestoreState(UIComponentBase.java:1157)
  
  javax.faces.component.UIComponentBase.processRestoreState(UIComponentBase.java:1157)
  javax.faces.component.UIComponentBase.processRestoreState
  (UIComponentBase.java:1157)
  
  javax.faces.component.UIComponentBase.processRestoreState(UIComponentBase.java:1157)
  
  javax.faces.component.UIComponentBase.processRestoreState(UIComponentBase.java:1157)
  javax.faces.component.UIComponentBase.processRestoreState
  (UIComponentBase.java:1157)
  
  javax.faces.component.UIComponentBase.processRestoreState(UIComponentBase.java:1157)
  
  com.sun.faces.application.StateManagerImpl.restoreView(StateManagerImpl.java:171)
  com.sun.faces.application.ViewHandlerImpl.restoreView
  (ViewHandlerImpl.java:290)
  
  org.apache.myfaces.tobago.application.ViewHandlerImpl.restoreView(ViewHandlerImpl.java:113)
  
  com.sun.facelets.FaceletViewHandler.restoreView(FaceletViewHandler.java:310)
  org.apache.myfaces.tobago.lifecycle.RestoreViewExecutor.execute
  (RestoreViewExecutor.java:108)
  
  org.apache.myfaces.tobago.lifecycle.TobagoLifecycle.executePhase(TobagoLifecycle.java:102)
  
  org.apache.myfaces.tobago.lifecycle.TobagoLifecycle.execute(TobagoLifecycle.java:72)
  javax.faces.webapp.FacesServlet.service
  (FacesServlet.java:244)
  
  org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter(ExtensionsFilter.java:147)
  
  org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
 
  any idea?
  Regards,
  Zied
 
 
  --
  Zied Hamdi
  zatreex.sourceforge.net
 



 --
 I have a nine iron and I'm not afraid to use it




-- 
Zied Hamdi
zatreex.sourceforge.net


[tomahawk][tobago] can't select a schedule entry

2007-11-07 Thread Zied Hamdi
Hi,

I've beagan developing my app with the tomahawk 1.1.7 Snapshot (expecting it
will be stable when the project will finish). Unfortunately I get a js error
when I click on an entry:
Erreur : document.forms[formId] has no properties
Fichier source :
http://localhost:8080/IntoServicesWeb/faces/myFacesExtensionResource/org.apache.myfaces.renderkit.html.util.MyFacesResourceLoader/11944520/schedule.HtmlSchedule/javascript/schedule.js
Ligne : 33

Trying t get back to 1.1.6 or 1.1.5 I have a even more serious problem:

java.lang.IllegalStateException:
org.apache.myfaces.custom.schedule.UISchedule$ScheduleActionListener
javax.faces.component.StateHolderSaver.restore(StateHolderSaver.java:98)

javax.faces.component.UIComponentBase.restoreAttachedState(UIComponentBase.java:1406)

javax.faces.component.UIComponentBase.restoreState(UIComponentBase.java:1272)

org.apache.myfaces.custom.schedule.UISchedule.restoreState(UISchedule.java:378)

org.apache.myfaces.custom.schedule.HtmlSchedule.restoreState(HtmlSchedule.java:189)

javax.faces.component.UIComponentBase.processRestoreState(UIComponentBase.java:1141)

javax.faces.component.UIComponentBase.processRestoreState(UIComponentBase.java:1157)

javax.faces.component.UIComponentBase.processRestoreState(UIComponentBase.java:1157)

javax.faces.component.UIComponentBase.processRestoreState(UIComponentBase.java:1157)

javax.faces.component.UIComponentBase.processRestoreState(UIComponentBase.java:1157)

javax.faces.component.UIComponentBase.processRestoreState(UIComponentBase.java:1157)

javax.faces.component.UIComponentBase.processRestoreState(UIComponentBase.java:1157)

javax.faces.component.UIComponentBase.processRestoreState(UIComponentBase.java:1157)

javax.faces.component.UIComponentBase.processRestoreState(UIComponentBase.java:1157)

com.sun.faces.application.StateManagerImpl.restoreView(StateManagerImpl.java:171)

com.sun.faces.application.ViewHandlerImpl.restoreView(ViewHandlerImpl.java:290)

org.apache.myfaces.tobago.application.ViewHandlerImpl.restoreView(ViewHandlerImpl.java:113)

com.sun.facelets.FaceletViewHandler.restoreView(FaceletViewHandler.java:310)

org.apache.myfaces.tobago.lifecycle.RestoreViewExecutor.execute(RestoreViewExecutor.java:108)

org.apache.myfaces.tobago.lifecycle.TobagoLifecycle.executePhase(TobagoLifecycle.java:102)

org.apache.myfaces.tobago.lifecycle.TobagoLifecycle.execute(TobagoLifecycle.java:72)
javax.faces.webapp.FacesServlet.service(FacesServlet.java:244)

org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter(ExtensionsFilter.java:147)

org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)

any idea?
Regards,
Zied


-- 
Zied Hamdi
zatreex.sourceforge.net


Re: [tobago] tree fills node id with null

2007-10-31 Thread Zied Hamdi
So, the error was due to the snippet:

  c:if test =#{not empty ajaxScope} 

  tc:attribute

   name =renderedPartially

   value =:page:mainInfoTabPanel /
the id :page:mainInfoTabPanel (that is itself a bug workaround :-)) was not
found so it throws a js exception :-/

Does anyone know where is the log written, so I avoid spamming the mailing
list ;-)?

Regards,
Zied


2007/10/31, Zied Hamdi [EMAIL PROTECTED]:

 Hi,

 I have a problem with an included tree: it works on a page but doesn't in
 the other and I can't figure out what's wrong with the the latter. The
 problem is in js: it declares a null id (then it's impossible to react
 onClick). I've joined a screen capture of the script state in debug mode:

 new Tobago.ScriptLoader(

 ['/IntoServicesWeb/org/apache/myfaces/tobago/renderkit/html/standard/standard/script/tree.js',
 '/IntoServicesWeb/org/apache/myfaces/tobago/renderkit/html/scarborough/standard/script/tree.js'],

   {
 +   var treeResourcesHelp = new Object();
 +   treeResourcesHelp[\openfoldericon.gif\] =
 \/IntoServicesWeb/org/apache/myfaces/tobago/renderkit/html/richmond/standard/image/openfoldericon.gif\;

 +   treeResourcesHelp[\foldericon.gif\] =
 \/IntoServicesWeb/org/apache/myfaces/tobago/renderkit/html/richmond/standard/image/foldericon.gif\;
 +   treeResourcesHelp[\ unchecked.gif\] =
 \/IntoServicesWeb/org/apache/myfaces/tobago/renderkit/html/speyside/standard/image/unchecked.gif\;
 +   treeResourcesHelp[\uncheckedDisabled.gif\] =
 \/IntoServicesWeb/org/apache/myfaces/tobago/renderkit/html/speyside/standard/image/uncheckedDisabled.gif\;

 +   treeResourcesHelp[\checked.gif\] =
 \/IntoServicesWeb/org/apache/myfaces/tobago/renderkit/html/speyside/standard/image/checked.gif\;
 +   treeResourcesHelp[\ checkedDisabled.gif\] =
 \/IntoServicesWeb/org/apache/myfaces/tobago/renderkit/html/speyside/standard/image/checkedDisabled.gif\;
 +   treeResourcesHelp[\new.gif\] =
 \/IntoServicesWeb/org/apache/myfaces/tobago/renderkit/html/richmond/standard/image/new.gif\;

 +   treeResourcesHelp[\T.gif\] =
 \/IntoServicesWeb/org/apache/myfaces/tobago/renderkit/html/richmond/standard/image/T.gif\;
 +   treeResourcesHelp[\L.gif\ ] =
 \/IntoServicesWeb/org/apache/myfaces/tobago/renderkit/html/richmond/standard/image/L.gif\;
 +   treeResourcesHelp[\I.gif\] =
 \/IntoServicesWeb/org/apache/myfaces/tobago/renderkit/html/richmond/standard/image/I.gif\;

 +   treeResourcesHelp[\Lminus.gif\] =
 \/IntoServicesWeb/org/apache/myfaces/tobago/renderkit/html/richmond/standard/image/Lminus.gif\;
 +   treeResourcesHelp[\ Tminus.gif\] =
 \/IntoServicesWeb/org/apache/myfaces/tobago/renderkit/html/richmond/standard/image/Tminus.gif\;
 +   treeResourcesHelp[\Rminus.gif\] =
 \/IntoServicesWeb/org/apache/myfaces/tobago/renderkit/html/richmond/standard/image/Rminus.gif\;

 +   treeResourcesHelp[\Lplus.gif\] =
 \/IntoServicesWeb/org/apache/myfaces/tobago/renderkit/html/richmond/standard/image/Lplus.gif\;
 +   treeResourcesHelp[\ Tplus.gif\] =
 \/IntoServicesWeb/org/apache/myfaces/tobago/renderkit/html/richmond/standard/image/Tplus.gif\;
 +   treeResourcesHelp[\Rplus.gif\] =
 \/IntoServicesWeb/org/apache/myfaces/tobago/renderkit/html/richmond/standard/image/Rplus.gif\;

 +   treeResourcesHelp[\treeMenuOpen.gif\] =
 \/IntoServicesWeb/org/apache/myfaces/tobago/renderkit/html/speyside/standard/image/treeMenuOpen.gif\;
 +   treeResourcesHelp[\ treeMenuClose.gif\] =
 \/IntoServicesWeb/org/apache/myfaces/tobago/renderkit/html/speyside/standard/image/treeMenuClose.gif\;
 +  
 +   treeResourcesHelp.getImage = function (name) {
 + var result = this[name];
 + if (result) {
 +   return result;
 + } else {
 +   return
 \/IntoServicesWeb/org/apache/myfaces/tobago/renderkit/html/scarborough/standard/image/blank.gif\;

 + }
 +   };
 +  
 +   var page_categoriesTree_treeNodeCommand = \
 Tobago.reloadComponent('null', this.id, {});\;
 +   var page_categoriesTree_node9104137 = new
 TreeOldNode('Categories',null,'page:categoriesTree:node9104137','tree',true,false,false,false,false,'page:categoriesTree',false,false,'page::form',false,false,false,false,false,treeResourcesHelp,null,page_categoriesTree_treeNodeCommand,null,null,null,'296',null);

 +   var page_categoriesTree_node5030952 = new
 TreeOldNode('rv',null,'page:categoriesTree:node5030952','tree',false,false,false,false,false,'page:categoriesTree',false,false,'page::form',false,false,false,false,false,treeResourcesHelp,null,page_categoriesTree_treeNodeCommand,page_categoriesTree_node9104137,null,null,'296',null);

 +   var page_categoriesTree_node31596357 = new
 TreeOldNode('zied',null

Re: [Tobago] Popups are brocken in current 1.0.13 snapshot in IE6

2007-10-25 Thread Zied Hamdi
Hi Helmut,

I've obtained the same resultes when I didn't specify the renderedPartially
attribute

Regards,
Zied


2007/10/24, Helmut Swaczinna [EMAIL PROTECTED]:

 Hi,

 please see attachted screenshot.

 Regards
 Helmut




-- 
Zied Hamdi
zatreex.sourceforge.net


Groovy or El expressions?

2007-10-19 Thread Zied Hamdi
Hi all,

Thinking I've found a great idea for a small open source project as soon as
I'll finish with the currnent product I'm writing: an adapter to use Groovy
instead of (in some conf file) el expressions. I took a look at the web and
I see that the general movance is already in that sense:

ADF faces has now native support for Groovy (
http://radio.weblogs.com/0118231/2007/05/22.html), and Seam 2.0 beta seems
to support it (I don't know how far).

I'm know to JSF (6 months) But I know in the 1.2, El resolvers have been
externalized so it's easy to imagine we adapt a Groovy resolver in that
place. Seen what el does, I think theresn't a lot to do to have all
interfaces implemented with the Groovy counterpart.

Does anyone know if there's currently a project in that sens?

I think facelets is a great candidate to support Groovy natively (or to
define an entry point to scripts in general): that way it'd have both
view (data) templating (as it already has) but also function templating (if
I can say it like this). In fact this could resolve a lot of issues like
'why can't we pass a method as a prameter' and so on...

Any votes? ;-p

-- 
Zied Hamdi
zatreex.sourceforge.net


[tobago] tree edition: I need a popup

2007-10-17 Thread Zied Hamdi
Hello,

It's been a while all is ok for me with Tobago, unfortuately I'm encountring
a problem where I need help again.

I have a tree where I've added an actionListener to edit add and remove
nodes: I'm attemping to use the embedded edition mecanisme so I create my
action listner extending DefaultTreeActionListener but I need to open a
popup when the buttons new or edit are clicked, so I can fill in the
node info.

The only solution I can imagine for now is to get the bb in the listener and
set a popup flag to true (and save the ActionEvent somewhere in session
scope), then wait for the ok button to get the tree from the ActionEvent and
add it the newly created node, it seems to me a little ugly programming :-).
Is there a way to say directly in the tree action listener to open a popup :


  tc:tree

id=categoriesTree

value=#{contractCtrl.categoriesRoot}

showIcons=true

mutable=#{contractCtrl.editingCategories}

nameReference=userObject.embedded.name

f:actionListener type=
fr.into.services.controller.CategoryEditionListener /

...


Or can you explain me a little (or redirect me to) how was thougth the use
case for editing a node?


-- 
Regards,
Zied Hamdi


[JSF] and maybe [+obago] : how to get the id of the current element to pass it to a function

2007-10-08 Thread Zied Hamdi
Hi Tobago friends,

I have a question for all JSF users (th'at's why I wrote +obago for those
who have filters). I'd like to let each user choose what he wants displayed
in his/her label and link fields. So I wrote a function that I'd like to
call this way for example:


tc:column

  tc:link label=#{itf:toString(contract.client, *''*
)}/tc:link

/tc:column




Where I'd like to have in  the id of the current element.  Does anyone
have a solution to insert it automatically through javascript or an el
expression?

I think javascript could be a good candidte sth like

function( tag ) {
  return tag.id;
}

But I'm really bad in js, I don't know when it gets called, how to call it
to fill in the value at page load, and fetures like that...

I'd be very happy if someone can help.

Cheers and folks,
Zied


Re: [JSF] and maybe [+obago] : how to get the id of the current element to pass it to a function

2007-10-08 Thread Zied Hamdi
Hi Mario,

Thanks!!! that's great to know. I'll try to search the document for  and
replace with the element id.

Though I prefer to let this solution as the no solution approch, In fact I
planned to do my own xx:link and xx:label that gets its own id and pass it
transaparently with no impact on the owning page...

Anyway it's a great thing to know in general.

Regards,
Zied


2007/10/8, Schröder, Mario [EMAIL PROTECTED]:

  Hi Zied,



 I think the tag tc:script/ is the solution. It has several attributes
 like onload or onexit. You should place it inside tc:page. Here a
 skeleton:



 f:view

  script language=javascript

 function doIt(){

 alert(Welcome);

 }

  /script

  tc:page

   tc:script onload=doIt()/

   …your content…

  /tc:page

 /f:view



 Hope it helps.



 Regards, Mario


  --

 *Von:* Zied Hamdi [mailto:[EMAIL PROTECTED]
 *Gesendet:* Montag, 8. Oktober 2007 16:05
 *An:* MyFaces
 *Betreff:* [JSF] and maybe [+obago] : how to get the id of the current
 element to pass it to a function



 Hi Tobago friends,



 I have a question for all JSF users (th'at's why I wrote +obago for those
 who have filters). I'd like to let each user choose what he wants displayed
 in his/her label and link fields. So I wrote a function that I'd like to
 call this way for example:



  tc:column 

tc:link label =#{itf:toString(contract.client, *'**
 **'* )}/ tc:link

 /tc:column 





 Where I'd like to have in  the id of the current element.  Does anyone
 have a solution to insert it automatically through javascript or an el
 expression?



 I think javascript could be a good candidte sth like



 function( tag ) {

   return tag.id;

 }



 But I'm really bad in js, I don't know when it gets called, how to call it
 to fill in the value at page load, and fetures like that...



 I'd be very happy if someone can help.



 Cheers and folks,

 Zied




-- 
Zied Hamdi
zatreex.sourceforge.net


Re: [JSF] and maybe [+obago] : how to get the id of the current element to pass it to a function

2007-10-08 Thread Zied Hamdi
Hi Simon,

I have a Facelets function wich will act on the server side:
  - each user will be able to have its rows in database for specifying the
pattern he want to have for a given id

For example let's say the pattern is simply an el expression:
  whan I use my facelets tag xx:link it gets the id of the tc:link element
it contains and passes it to the facelets function. This one gets the
corresponding el expression and returns the resulting string of
itf:toString(contract.client, *'correspondingEl'*
**
where correspondingEl is for example: #{client.lastName} entred: #{
client.entryDate} for the user1
and #{client.lastName} sponsored #{client.sponsored.size} for user2, both
expressions will be in database under the key : JSF id of the link

For me it's important that this happens as transparently as using a standard
tag. The content of the template tag can contain js code naturally, but it
inspects alone the id of its content.

Regards,
Zied



2007/10/8, Zied Hamdi [EMAIL PROTECTED]:

 Hi Mario,

 Thanks!!! that's great to know. I'll try to search the document for 
 and replace with the element id.

 Though I prefer to let this solution as the no solution approch, In fact I
 planned to do my own xx:link and xx:label that gets its own id and pass it
 transaparently with no impact on the owning page...

 Anyway it's a great thing to know in general.

 Regards,
 Zied


 2007/10/8, Schröder, Mario [EMAIL PROTECTED]:
 
   Hi Zied,
 
 
 
  I think the tag tc:script/ is the solution. It has several attributes
  like onload or onexit. You should place it inside tc:page. Here a
  skeleton:
 
 
 
  f:view
 
   script language=javascript
 
  function doIt(){
 
  alert(Welcome);
 
  }
 
   /script
 
   tc:page
 
tc:script onload=doIt()/
 
…your content…
 
   /tc:page
 
  /f:view
 
 
 
  Hope it helps.
 
 
 
  Regards, Mario
 
 
   --
 
  *Von:* Zied Hamdi [mailto: [EMAIL PROTECTED]
  *Gesendet:* Montag, 8. Oktober 2007 16:05
  *An:* MyFaces
  *Betreff:* [JSF] and maybe [+obago] : how to get the id of the current
  element to pass it to a function
 
 
 
  Hi Tobago friends,
 
 
 
  I have a question for all JSF users (th'at's why I wrote +obago for
  those who have filters). I'd like to let each user choose what he wants
  displayed in his/her label and link fields. So I wrote a function that I'd
  like to call this way for example:
 
 
 
   tc:column 
 
 tc:link label = #{itf:toString(contract.client, *'*
  * **'* )}/ tc:link
 
  /tc:column 
 
 
 
 
 
  Where I'd like to have in  the id of the current element.  Does
  anyone have a solution to insert it automatically through javascript or an
  el expression?
 
 
 
  I think javascript could be a good candidte sth like
 
 
 
  function( tag ) {
 
return tag.id;
 
  }
 
 
 
  But I'm really bad in js, I don't know when it gets called, how to call
  it to fill in the value at page load, and fetures like that...
 
 
 
  I'd be very happy if someone can help.
 
 
 
  Cheers and folks,
 
  Zied
 



 --
 Zied Hamdi
 zatreex.sourceforge.net




-- 
Zied Hamdi
zatreex.sourceforge.net


[tobago] is there a way to say render partially two node ids?

2007-10-05 Thread Zied Hamdi
Hello,

I have a case where in the whole page there are two parts that have as a
common parent node only tc:page (the left navigation panel and a component
in the content). A change in the content affects this little part of the
page and the left left navigation panel.
Am I obliged to refresh all the page or is there a way (even programmatic
eg. in a phase linstener) to say refresh this and that ids?

Regards,
Zied


Re: [tobago] separating the date and time components

2007-10-05 Thread Zied Hamdi
Hello,

Sorry for spamming, I found a bug in the class I sent you this morning: so
just to see how tedious it is to point to the same Date with separate
tc:date and tc:time tags, if every tag was just updating the fields he
shows, we could point to the same field without ths linking cables:


*public* Date getWorkStartTime() {

  *return* getCurrentWorkTask().getWorkStart();

}



*public* Date getWorkStartDate() {

  Date start = getCurrentWorkTask().getWorkStart();

  *if*( start == *null* || CalendarUtil.*equalsDate*( start,
1970, 0, 1 ) )

*return* *null*;

  *return* start;

}



*public* *void* setWorkStartDate(Date workStart) {

  getCurrentWorkTask().setWorkStart( CalendarUtil.*setDate*(
workStart, getWorkStart() ) );

}



*public* String toString() {

  *return* getCurrentWorkTask().toString();

}



To remind what I would like to have here's what I expected from these
components:

  tx:date

id =workStartDate

value =#{intervention.*workStart*}

label =#{i18n.workStartDate} 

 f:convertDateTime pattern =dd.MM. /

  / tx:date



   tc:time

id =workStart

value= #{intervention.*workStart*} /
in that case all the code above is simplified in a pojo manner.

Regards,
Zied

2007/10/5, Zied Hamdi [EMAIL PROTECTED]:

 Hello again,

 Sorry I forgot we're in multitasking.

 Here's a better version.

 Regards,
 Zied


 2007/10/5, Zied Hamdi [EMAIL PROTECTED]:
 
  Hello,
 
  I've just wrote a util class that could help in this task.
 
  Regards,
  Zied
 
 
  2007/9/21, Zied Hamdi [EMAIL PROTECTED]:
  
  
   Sorry forgot to mention [tobago]
   -- Forwarded message --
   From: Zied Hamdi  [EMAIL PROTECTED] 
   Date: 21 sept. 2007 15:36
   Subject: separating the date and time components
   To: MyFaces  users@myfaces.apache.org
  
   Hi,
  
   I have attempted to assemble a tx:date with a tc:time follow the same
   field (expecting each componenent will fill its data in the part it is
   concerned with)
  
  tx:date
  
   id =workStartDate
  
   value =#{intervention.workStart}
  
   label =#{i18n.workStartDate} 
  
f:convertDateTime pattern = dd.MM. /
  
 / tx:date
  
  
  
  tc:time
  
   id =workStart
  
   value = #{intervention.workStart} /
  
  
  
  
  
   The result is that tc:time seams to create a new instance with a date
   set to 0 (01.01.1970) instead of using GregorianCalendar.set() on the
   existing one.
  
   Do I have to cretae a minor issue on this behavior?
  
   --
   Zied Hamdi
   zatreex.sourceforge.net
  
  
  
   --
   Zied Hamdi
   zatreex.sourceforge.net
  
  
 
 
  --
  Zied Hamdi
  zatreex.sourceforge.net
 
 


 --
 Zied Hamdi
 zatreex.sourceforge.net




-- 
Zied Hamdi
zatreex.sourceforge.net
package fr.into.common.util.data.calendar;

import java.util.Calendar;
import java.util.Date;
import java.util.GregorianCalendar;

/**
 * Handle and compare dates and times in a multitasking env.
 * 
 * @author Zied Hamdi on 5 oct. 07
 * 
 */
public class CalendarUtil {
public static final int[]   TIME= {
Calendar.HOUR_OF_DAY, Calendar.MINUTE, Calendar.SECOND, 
Calendar.MILLISECOND

};
public static final int[]   DATE= {
Calendar.YEAR, Calendar.MONTH, Calendar.DAY_OF_MONTH

};

public static Date setTime(Date source, Date target) {
return set( source, target, TIME );
}

public static Date setDate(Date source, Date target) {
return set( source, target, DATE );
}

/**
 * Returns target updated with toSet fields from source
 * 
 * @author Zied Hamdi for Into© corporation on 5 oct. 07
 * @param source
 * @param target
 * @param toSet
 * @return
 */
public static Date set(Date source, Date target, int... toSet) {
GregorianCalendar targetCalendar = new GregorianCalendar(), 
sourceCalendar = new GregorianCalendar();
targetCalendar.setTime( target != null ? target : new Date( 0 ) 
);
sourceCalendar.setTime( source != null ? source : new Date( 0 ) 
);
for( int calendarItem : toSet ) {
targetCalendar.set( calendarItem, sourceCalendar.get( 
calendarItem ) );
}
return

Re: still the same exception

2007-10-04 Thread Zied Hamdi
Hi Bernd,

Do you mean all the implied pages? I'm sending you the file of the page
containing the link. If you need the whole structure let me know.

Regards,
Zied


2007/10/4, Bernd Bohmann [EMAIL PROTECTED]:

 Hello Zied,

 can you send the page, please.

 Regards

 Bernd

 Zied Hamdi wrote:
  Hi,
 
  The action doesn't execute, it's normal I didn't specify the action as
 an EL
  (shame on me), but I still have the exception.
 
  Regards,
  Zied
 
  2007/10/3, Zied Hamdi [EMAIL PROTECTED]:
  Hi,
 
  I still have the same (assertion) exception but this time my link
 doesn't
  work, and I can't go out of it :-(.
 
  The code seems unable to find the component by its id even if I can see
 it
  in the view tree...
 
  The code that produces it works elsewhere, here no action and no action
  listener is called :
  (otherwise there's a minor visual bug in the richmond style: when a row
 is
  selected, its color is the same as links so no text is visible anymore)
 
   tc:sheet
 
xmlns= http://www.w3.org/1999/xhtml;
 
xmlns:jsp= http://java.sun.com/JSP/Page;
 
xmlns:tc= http://myfaces.apache.org/tobago/component;
 
xmlns:tx= http://myfaces.apache.org/tobago/extension;
 
xmlns:ui= http://java.sun.com/jsf/facelets;
 
xmlns:h= http://java.sun.com/jsf/html;
 
xmlns:f= http://java.sun.com/jsf/core;
 
id= workTaskTable
 
columns =*;*
 
value =#{contractCtrl.planning}
 
var =intervention 
 
 
 
 tc:column
 
   tc:link
 
id =workTaskDetailLink
 
image =image/edit. PNG
 
action =contractCtrl.editTaskCmd
 
actionListener =contractCtrl.editTaskLsnr /
 
/ tc:column
 
 
 
 tc:column label =|Categorie 
 
   tc:link
 
id =category
 
label =#{intervention.category.name}
 
action =contract /
 
/ tc:column
 
 
 
 tc:column label =#{i18n.intervenant} 
 
   tc:link
 
id =intervenant
 
label =#{intervention.intervenant.firstName} #{
  intervention.intervenant.lastName}
 
action =contract /
 
/ tc:column
 
 
 
 tc:column label =#{i18n.workStartDate} 
 
   tx:date
 
id =workStartDate
 
value =#{intervention.workStart}
 
labelWidth =0px 
 
 f:convertDateTime pattern =dd.MM. /
 
  / tx:date
 
/ tc:column
 
 
 
 tc:column label =#{i18n.workStartTime} 
 
   tc:time
 
id =workStart
 
value =#{intervention.workStart} /
 
/ tc:column
 
 
 
 tc:column label =#{i18n.workEndTime} 
 
   tc:time
 
id =workEnd
 
value =#{intervention.workEnd} /
 
/ tc:column
 
 
 
 tc:column label =#{i18n.workEndDate} 
 
   tx:date
 
id =workEndDate
 
value =#{intervention.workEnd}
 
labelWidth =0px 
 
 f:convertDateTime pattern =dd.MM. /
 
  / tx:date
 
/ tc:column
 
 
 
 tc:column label =#{i18n.note} 
 
   tc:in value =#{intervention.note} /
 
/ tc:column
 
  / tc:sheet
 
 
 
 
  18:23:05,453 INFO  [STDOUT] 2007-10-03 18:23:05,437 [
 http-127.0.0.1-8080-2]
  DEBUG org.apache.myfaces.tobago.component.UIPage.markSubmittedForm(156) -
  actionId = 'page:taskTableSubview:workTaskTable:0:workTaskDetailLink'
 
  18:23:05,468 INFO  [STDOUT] 2007-10-03 18:23:05,468 [
 http-127.0.0.1-8080-2]
  INFO  org.apache.myfaces.tobago.component.UIPage.markSubmittedForm(176)
 -
  command = [EMAIL PROTECTED] 
 
  *java.lang.Exception*
 
at org.apache.myfaces.tobago.component.UIPage.markSubmittedForm(*
  UIPage.java:176*)
 
at org.apache.myfaces.tobago.component.UIPage.processDecodes (*
  UIPage.java:138*)
 
at javax.faces.component.UIComponentBase.processDecodes (*
  UIComponentBase.java:1001*)
 
at javax.faces.component.UIViewRoot.processDecodes (*
 UIViewRoot.java
  :493*)
 
at org.apache.myfaces.tobago.component.UIViewRoot.processDecodes(*
  UIViewRoot.java:183*)
 
at
  org.apache.myfaces.tobago.lifecycle.ApplyRequestValuesExecutor.execute
 (*
  ApplyRequestValuesExecutor.java :78*)
 
at
 org.apache.myfaces.tobago.lifecycle.TobagoLifecycle.executePhase(
  *TobagoLifecycle.java :102*)
 
at org.apache.myfaces.tobago.lifecycle.TobagoLifecycle.execute(*
  TobagoLifecycle.java :72*)
 
at javax.faces.webapp.FacesServlet.service(*FacesServlet.java:244*
 )
 
at
 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(
  *ApplicationFilterChain.java :290*)
 
at org.apache.catalina.core.ApplicationFilterChain.doFilter

renderedPartially is a great function, it could have more framework support

2007-10-04 Thread Zied Hamdi
Hi,

I decided to focus on all my renderedPartially my attributes to make them
work. And I understood they doesn't work with tc:cell, tc:tab, tc:tabgroup
and maybe others. In addition, when pointed to tc:tab, tc:tabgroup
javascript errors are generated and doesn't let the job done.

I think a sort of tree view building-time compiler could be of good help
to community saying: component with id:xx of type xx can't be rendered
partially.

Otherwise, a very minor bug when the renderedPartially value is null (I
think this business case is similar to an empty string value rather than an
unallowed value):
java.lang.NullPointerException
at
org.apache.myfaces.tobago.renderkit.html.CommandRendererHelper.initOnclick(
CommandRendererHelper.java:100)
at org.apache.myfaces.tobago.renderkit.html.CommandRendererHelper.init(
CommandRendererHelper.java:61)
at
org.apache.myfaces.tobago.renderkit.html.scarborough.standard.tag.TreeOldRenderer.getTreeNodeCommandVar
(TreeOldRenderer.java:292)
at
org.apache.myfaces.tobago.renderkit.html.scarborough.standard.tag.TreeOldRenderer.createJavascript
(TreeOldRenderer.java:251)
this happens on templating such as:

tc:attribute

 name=renderedPartially

 value=#{ajaxScope} /


Regards,
Zied


[tobago] Tag vs. component with facelets

2007-10-04 Thread Zied Hamdi
Hi,

I have a little problem with runtime vs build-time tags:

I have a component page categories.xhtml containing the snippet:

  c:if test=#{not empty ajaxScope}

tc:attribute

 name=renderedPartially

 value=#{ajaxScope} /

  /c:if




included by a page as follows:

 ui:include src=/contract/categories.xhtml

   ui:param

 name=ajaxScope

 value=:page:mainInfoTabPanel /

 /ui:include



The c:if evaluates correctly at build time and adds the attribute to its
parent. But it seems tc:attribute evaluates at runtime: it finds null.

Having two varibales one runtime and one build time with the same value is a
little barbar.

Anyone knows how to resolve this? Any idea is welcome.

Regards,
Zied


Re: [tobago] Tag vs. component with facelets

2007-10-04 Thread Zied Hamdi
Hello Bernd how are you?

Was I right when I said to Volker you're on holidays? If yes I hope it was
memorable.

I can't figure out what you meant by two commands, did you mean applying the
rendered attribute on the command instead of c:if and have two commands, my
c:if is only a workaround the NullPointerException I have mentioned in the
last mail?
to be more explicit : this is my case. The c:if can be removed, it is there
only in the case the attribute ajaxScope is not specified.

tc:tree

  xmlns=http://www.w3.org/1999/xhtml;

  xmlns:f=http://java.sun.com/jsf/core;

  xmlns:h=http://java.sun.com/jsf/html;

  xmlns:t=http://myfaces.apache.org/tomahawk;

  xmlns:tc=http://myfaces.apache.org/tobago/component;

  xmlns:tx=http://myfaces.apache.org/tobago/extension;

  xmlns:c=http://java.sun.com/jstl/core;

  id=categoriesTree

  value=#{contractCtrl.categoriesRoot}

  state=#{contractCtrl.treeState}

  showIcons=true

  mutable=true

  nameReference=userObject.embedded.name

  f:actionListener type=
fr.into.services.controller.CategoryEditionListener /

  f:facet name=treeNodeCommand

tc:command actionListener=#{contractCtrl.selectCategory}

  c:if test=#{not empty ajaxScope}

tc:attribute

 name=renderedPartially

 value=#{ajaxScope} /



  /c:if

/tc:command

  /f:facet



/tc:tree




2007/10/4, Bernd Bohmann [EMAIL PROTECTED]:

 Hello Zied,

 maybe two Commands with the rendered attribute would be a better choice.

 Regards

 Bernd



 Zied Hamdi wrote:
  Hi,
 
  I have a little problem with runtime vs build-time tags:
 
  I have a component page categories.xhtml containing the snippet:
 
c:if test=#{not empty ajaxScope}
 
  tc:attribute
 
   name=renderedPartially
 
   value=#{ajaxScope} /
 
/c:if
 
 
 
 
  included by a page as follows:
 
   ui:include
 src=/contract/categories.xhtml
 
 ui:param
 
   name=ajaxScope
 
   value=:page:mainInfoTabPanel
 /
 
   /ui:include
 
 
 
  The c:if evaluates correctly at build time and adds the attribute to its
  parent. But it seems tc:attribute evaluates at runtime: it finds null.
 
  Having two varibales one runtime and one build time with the same value
 is a
  little barbar.
 
  Anyone knows how to resolve this? Any idea is welcome.
 
  Regards,
  Zied
 




-- 
Zied Hamdi
zatreex.sourceforge.net


Re: [tobago] separating the date and time components

2007-10-04 Thread Zied Hamdi
Hello,

I've just wrote a util class that could help in this task.

Regards,
Zied


2007/9/21, Zied Hamdi [EMAIL PROTECTED]:


 Sorry forgot to mention [tobago]
 -- Forwarded message --
 From: Zied Hamdi [EMAIL PROTECTED] 
 Date: 21 sept. 2007 15:36
 Subject: separating the date and time components
 To: MyFaces users@myfaces.apache.org

 Hi,

 I have attempted to assemble a tx:date with a tc:time follow the same
 field (expecting each componenent will fill its data in the part it is
 concerned with)

tx:date

 id =workStartDate

 value =#{intervention.workStart}

 label =#{i18n.workStartDate} 

  f:convertDateTime pattern = dd.MM. /

   / tx:date



tc:time

 id =workStart

 value = #{intervention.workStart} /





 The result is that tc:time seams to create a new instance with a date set
 to 0 (01.01.1970) instead of using GregorianCalendar.set() on the existing
 one.

 Do I have to cretae a minor issue on this behavior?

 --
 Zied Hamdi
 zatreex.sourceforge.net



 --
 Zied Hamdi
 zatreex.sourceforge.net




-- 
Zied Hamdi
zatreex.sourceforge.net
package fr.into.common.util.data.calendar;

import java.util.Calendar;
import java.util.Date;
import java.util.GregorianCalendar;

public class CalendarUtil {
protected static GregorianCalendar  targetCalendar  = new 
GregorianCalendar(), sourceCalendar = new GregorianCalendar();
public static final int[] TIME = {Calendar.HOUR_OF_DAY, 
Calendar.MINUTE, Calendar.SECOND, Calendar.MILLISECOND};
public static final int[] DATE = {Calendar.YEAR, Calendar.MONTH, 
Calendar.DAY_OF_MONTH};

public static Date setTime(Date source, Date target) {
return set( source, target, TIME );
}

public static Date setDate(Date source, Date target) {
return set( source, target, DATE );
}

public static Date set(Date source, Date target, int... toSet) {
if( target == null ) {
target = new Date();
}
targetCalendar.setTime( target );
sourceCalendar.setTime( source );
for( int calendarItem : toSet ) {
targetCalendar.set( calendarItem, sourceCalendar.get( 
calendarItem ) ); 
}
return targetCalendar.getTime();
}
}


Re: [tobago] separating the date and time components

2007-10-04 Thread Zied Hamdi
Hello again,

Sorry I forgot we're in multitasking.

Here's a better version.

Regards,
Zied


2007/10/5, Zied Hamdi [EMAIL PROTECTED]:

 Hello,

 I've just wrote a util class that could help in this task.

 Regards,
 Zied


 2007/9/21, Zied Hamdi [EMAIL PROTECTED]:
 
 
  Sorry forgot to mention [tobago]
  -- Forwarded message --
  From: Zied Hamdi  [EMAIL PROTECTED] 
  Date: 21 sept. 2007 15:36
  Subject: separating the date and time components
  To: MyFaces  users@myfaces.apache.org
 
  Hi,
 
  I have attempted to assemble a tx:date with a tc:time follow the same
  field (expecting each componenent will fill its data in the part it is
  concerned with)
 
 tx:date
 
  id =workStartDate
 
  value =#{intervention.workStart}
 
  label =#{i18n.workStartDate} 
 
   f:convertDateTime pattern = dd.MM. /
 
/ tx:date
 
 
 
 tc:time
 
  id =workStart
 
  value = #{intervention.workStart} /
 
 
 
 
 
  The result is that tc:time seams to create a new instance with a date
  set to 0 (01.01.1970) instead of using GregorianCalendar.set() on the
  existing one.
 
  Do I have to cretae a minor issue on this behavior?
 
  --
  Zied Hamdi
  zatreex.sourceforge.net
 
 
 
  --
  Zied Hamdi
  zatreex.sourceforge.net
 
 


 --
 Zied Hamdi
 zatreex.sourceforge.net




-- 
Zied Hamdi
zatreex.sourceforge.net
package fr.into.common.util.data.calendar;

import java.util.Calendar;
import java.util.Date;
import java.util.GregorianCalendar;

/**
 * Handle and compare dates and times in a multitasking env.
 * @author Zied Hamdi on 5 oct. 07
 *
 */
public class CalendarUtil {
public static final int[]   
TIME= {
Calendar.HOUR_OF_DAY, Calendar.MINUTE, Calendar.SECOND, 
Calendar.MILLISECOND


};
public static final int[]   
DATE= {
Calendar.YEAR, Calendar.MONTH, Calendar.DAY_OF_MONTH


};

public static Date setTime(Date source, Date target) {
return set( source, target, TIME );
}

public static Date setDate(Date source, Date target) {
return set( source, target, DATE );
}

public static Date set(Date source, Date target, int... toSet) {
if( target == null ) {
target = new Date();
}

GregorianCalendar   targetCalendar  = new 
GregorianCalendar(), sourceCalendar = new GregorianCalendar();
targetCalendar.setTime( target );
sourceCalendar.setTime( source != null ? source : new Date( 0 ) 
);
for( int calendarItem : toSet ) {
targetCalendar.set( calendarItem, sourceCalendar.get( 
calendarItem ) );
}
return targetCalendar.getTime();
}

public static boolean equals(Date date1, Date date2, int... toTest) {
if( date1 == date2 )
return true;
if( date1 == null || date2 == null )
return false;

GregorianCalendar   targetCalendar  = new 
GregorianCalendar(), sourceCalendar = new GregorianCalendar();
targetCalendar.setTime( date2 );
sourceCalendar.setTime( date1 );
for( int calendarItem : toTest ) {
if( targetCalendar.get( calendarItem ) != 
sourceCalendar.get( calendarItem ) )
return false;
}

return true;
}

public static boolean equalsTime(Date date, int hour, int minute, int 
second, int millisecond) {
return equals( TIME, date, hour, minute, second, millisecond );
}

public static boolean equalsDate(Date date, int year, int month, int 
dayOfMonth) {
return equals( DATE, date, year, month, dayOfMonth );
}

public static boolean equals(int[] toTest, Date date, int... values) {
if( date == null )
return false;

if( values.length != toTest.length )
throw new IllegalArgumentException(toTest and values 
must be the same length

Re: [tobago] [tomahawk] schedule doesn't display at all

2007-10-02 Thread Zied Hamdi
Hi again,

So the problem was that tomahawk doesn't have like Tobago an extended dir
where is bundled its adapter to facelets.

 I had to download and adapt an external jar
http://code.google.com/p/tomahawk-facelets/

I have updated the wiki
http://wiki.apache.org/myfaces/Use_Facelets_with_Tomahawk#preview by adding
this declaration so you can copy/paste the .tld.xml (in the wiki page) into
the one in the dowloaded jar:

This is the snippet I added, but today I didn't test further
: the schedule only shows correctly (if some atts are not pojo like,
TagHandler classes will be necessary as described in the wiki).
tag
tag-nameschedule/tag-name
component
component-typeorg.apache.myfaces.Schedule/component-type
renderer-typeorg.apache.myfaces.Schedule/renderer-type
/component
/tag

Regards,
Zied


Re: [tobago] JSTL problem

2007-10-02 Thread Zied Hamdi
Hi Ben,

Facelets has its own implementation of JSTL (more precisely a subset). The
side effect of that is that even before JSF 1.2, people were able to use
JSTL without the known (evaluation order) problems when under Facelets. In
fact from what I undertood until know on Facelets: there are two phases: one
compilation and one runtime. Tags are either in one or the other phase: this
makes some unexpected behaviour ex
tc:sheet var=me ... 
  c:if test=#{me.here}
   .. do sth

this won't work because c:if is evaluated at compile time (this means the
time when the view tree is constructed) at that time tc:sheet didn't still
evaluate so you will always have one and only call to me.isHere() where me
will always be null.

The best thing to do is to give precedence to the rendered attribute for
avery panel box or other comp and use c:if in the cases where ther's no
other possibility.

Regards,
Zied

2007/10/2, Ben Smith [EMAIL PROTECTED]:

 Actually, as I understand it

 http://java.sun.com/jstl/core

 is the namespace for JSTL 1.0 (compatible with JSP  2.0), while

 http://java.sun.com/jsp/jstl/core

 is the namespace for JSTL = 1.1 that uses features in JSP = 2.0.

 I had quite a few problems because I was trying to use JSP 2.x
 features with the JSTL 1.0 namespace.  Even if you have a JSTL 1.2
 jar, if you use the 1.0 namespace you get JSTL 1.0.

 I don't know how all of this relates to facelets and Tobago, but it
 definitely makes a difference if you're trying to use JSF 1.2
 features.

 --Ben

 On 9/27/07, Zied Hamdi [EMAIL PROTECTED] wrote:
  Sorry erratum,
 
  The namespace used by facelets jstl is
 
  http://java.sun.com/jstl/core
  and not
 
  http://java.sun.com/jsp/jstl/core
  that was the problem. Too much noise for nothing.
 
  Regards,
  Zied
 
 
  2007/9/27, Zied Hamdi [EMAIL PROTECTED]:
  
   Hi again,
  
   So to answer to people who could encounter the same problem as me:
  facelets is bundled with its ows JSTL implementation (you were right
 Volker
  ;-) that has nothing to do with the standard one except that it copies
 its
  syntax:
 
 https://facelets.dev.java.net/nonav/docs/dev/docbook.html#taglib-available-jstl
  .
  
   The biggest probem is that where your c:if goes when it's called
 isn't
  easy to follow at all. I realized it doesn't go into
  com.sun.facelets.tag.jstl.core. IfHandler (added a breakpoint). A big
  mistake (in my opinion) is that facelets gives his implementation the
 same
  namespace as the one for standard JSTL: xmlns:c =
  http://java.sun.com/jsp/jstl/core
   This is a problem because the objective of namespaces is to
 distinguish
  between implementations of different types, it is amplified because wen
 you
  have a jstl jar in you classpath, the code is redirected to it (at least
  that's what happened to me)
  
   So even though I removed all my jars from my app jstl.jar (and
  standard.jar) files, JBoss has in its default libs jstl.jar that he puts
 for
  all applications. \JBoss\server\default \deploy\jboss-web.deployer\(that is
  copied to JBoss\server\default\tmp\deploy)
  
   Even after removing this jar, my calls didn't redirect to IfHandler
  (surely another perverse jstl implementation somewhere) so to be radical
 I
  changed the namespace like this: I copied the init code in
 JstlCoreLibrary
  into my own library:
  
  
  
   package fr.into.common.functions;
  
  
  
   import java.lang.reflect.Method;
  
   import java.lang.reflect.Modifier;
  
  
  
   import com.sun.facelets.tag.AbstractTagLibrary;
  
   import com.sun.facelets.tag.jstl.core.CatchHandler ;
  
   import com.sun.facelets.tag.jstl.core.ChooseHandler ;
  
   import
  com.sun.facelets.tag.jstl.core.ChooseOtherwiseHandler ;
  
   import com.sun.facelets.tag.jstl.core.ChooseWhenHandler ;
  
   import com.sun.facelets.tag.jstl.core.ForEachHandler ;
  
   import com.sun.facelets.tag.jstl.core.IfHandler;
  
   import com.sun.facelets.tag.jstl.core.SetHandler;
  
  
  
   public class CommonFunctionsTagLibrary extends AbstractTagLibrary {
  
 public static final String
 NAMESPACE= 
  http://www.into-i.fr/facelets/common/functions;;
  
 public static final CommonFunctionsTagLibrary   INSTANCE=
 new
  CommonFunctionsTagLibrary();
  
  
  
 public CommonFunctionsTagLibrary() {
  
   super( NAMESPACE );
  
  
  
   try {
  
 Method[] methods =
  CommonFunctions.class.getMethods();
  
  
  
 for( int i = 0; i  methods.length; i++ ) {
  
   if( Modifier.isStatic(
 methods[i].getModifiers() )
  ) {
  
 addFunction( methods[i].getName(),
  methods[i] );
  
   }
  
 }
  
   } catch( Exception e ) {
  
 throw new RuntimeException( e );
  
   }
  
   this.addTagHandler( if, IfHandler.class );
  
  
  
   this.addTagHandler( forEach

Re: [jira] Commented: (MYFACES-1714) submitted (or local) values are not erasable after conversion or validation error

2007-09-28 Thread Zied Hamdi
Yes Volker,

It's surely a good candidate for a common project: I started with a4j and
fastly gave up: no JSF Lifecycle, I had to use json to communicate with
components, a real nightmare. For me, the two most important added values of
Tobago are:

  - native JSF lifecycle and component approch with ajax.
  - extended component approch in the view layer thanks to layouts and
predefined css styles that let us write html as we'd write Swing or SWT app
(even if no custumisation is done, the look is correct).

Both are definetly candidates to comons JSF projets, the second seems a
lillte complicated seen the posts about compatibility with Trinidad (due to
the layouting mecanism).

Zied

2007/9/27, Matthias Wessendorf [EMAIL PROTECTED]:

 I agree with volker.

 -Matthias

 On 9/25/07, Volker Weber [EMAIL PROTECTED] wrote:
  Hi,
 
  just to put my 2¢ here and to show the advantages of tobago ;-)
 
  In tobago the ajax requests are full integrated into the lifecycle.
  We did this by taking and extending a copy of the Lifecycle impl from
 myfaces.
  All phases are execuded as on normal requests execpt the process*
  methods are not invoked on UIViewRoot but on the relevant component in
  case of ajax.
 
  I think such a Lifecycle approach is mutch better than the
  PhaseListener way where all further lifecycle phases are bypassed.
 
  May be a candidate for a jsf-commons project?
 
 
  Regards,
  Volker
 
 
 
  2007/9/25, Mario Ivankovits [EMAIL PROTECTED]:
   Hi!
I am just curious which ajax framework do you use/recommend?
   
   It is not meant as a recommendation, I have no further experience with
   other ajax frameworks.
   I use the pprPanelGroup from tomahawk-sandbox.
   Compared to the other ajax frameworks the pprPanelGroup might be too
   limited, don't kow 
  
   Together with subForm where possible/required.
   Not sure if it helps you (3-4 days back - so it is brand-new), but
 I've
   added a preserveSubmittedValues=true|false to the tomahawk subForm
 tag
   if a ppr outside of the subForm triggered the partial reload so that
   your model update will be reflected.
   On preserveSubmittedValues=false all submitted values of the embedded
   components will be nullified.
  
   Ciao,
   Mario
  
  
 


 --
 Matthias Wessendorf

 further stuff:
 blog: http://matthiaswessendorf.wordpress.com/
 mail: matzew-at-apache-dot-org




-- 
Zied Hamdi
zatreex.sourceforge.net


selectionChange facet doesn't work on my sheet???

2007-09-28 Thread Zied Hamdi
Hi,

I've followed the description in the issue
http://issues.apache.org/jira/browse/TOBAGO-84
But it doesn't work, in addition the bug is still open, does it mean this
was only a proposition for a solution?

Regards,
Zied


Re: [tobago] JSTL problem

2007-09-27 Thread Zied Hamdi
Hi again,

So to answer to people who could encounter the same problem as me: facelets
is bundled with its ows JSTL implementation (you were right Volker ;-) that
has nothing to do with the standard one except that it copies its syntax:
https://facelets.dev.java.net/nonav/docs/dev/docbook.html#taglib-available-jstl
.

The biggest probem is that where your c:if goes when it's called isn't easy
to follow at all. I realized it doesn't go into *
com.sun.facelets.tag.jstl.core.**IfHandler* (added a breakpoint). A big
mistake (in my opinion) is that facelets gives his implementation the same
namespace as the one for standard JSTL: xmlns:c=
http://java.sun.com/jsp/jstl/core
This is a problem because the objective of namespaces is to distinguish
between implementations of different types, it is amplified because wen you
have a jstl jar in you classpath, the code is redirected to it (at least
that's what happened to me)

So even though I removed all my jars from my app jstl.jar (and standard.jar)
files, JBoss has in its default libs jstl.jar that he puts for all
applications. \JBoss\server\*default*\deploy\jboss-web.deployer\ (that is
copied to JBoss\server\default\tmp\deploy)

Even after removing this jar, my calls didn't redirect to
*IfHandler*(surely another perverse jstl implementation somewhere) so
to be radical I
changed the namespace like this: I copied the init code in *JstlCoreLibrary
*into my own library:


package fr.into.common.functions;



import java.lang.reflect.Method;

import java.lang.reflect.Modifier;



import com.sun.facelets.tag.AbstractTagLibrary;

import com.sun.facelets.tag.jstl.core.CatchHandler;

import com.sun.facelets.tag.jstl.core.ChooseHandler;

import com.sun.facelets.tag.jstl.core.ChooseOtherwiseHandler;

import com.sun.facelets.tag.jstl.core.ChooseWhenHandler;

import com.sun.facelets.tag.jstl.core.ForEachHandler;

import com.sun.facelets.tag.jstl.core.IfHandler;

import com.sun.facelets.tag.jstl.core.SetHandler;



public class CommonFunctionsTagLibrary extends AbstractTagLibrary {

  public static final String
NAMESPACE   = http://www.into-i.fr/facelets/common/functions;;

  public static final CommonFunctionsTagLibrary  INSTANCE= new
CommonFunctionsTagLibrary();



  public CommonFunctionsTagLibrary() {

super( NAMESPACE );



try {

  Method[] methods = CommonFunctions.class.getMethods();



  for( int i = 0; i  methods.length; i++ ) {

if( Modifier.isStatic( methods[i].getModifiers() ) )
{

  addFunction( methods[i].getName(), methods[i]
);

}

  }

} catch( Exception e ) {

  throw new RuntimeException( e );

}

this.addTagHandler( if, IfHandler.class );



this.addTagHandler( forEach, ForEachHandler.class );



this.addTagHandler( catch, CatchHandler.class );



this.addTagHandler( choose, ChooseHandler.class );



this.addTagHandler( when, ChooseWhenHandler.class );



this.addTagHandler( otherwise, ChooseOtherwiseHandler.class );



this.addTagHandler( set, SetHandler.class );

  }



}

see this link for creating your own libs:
http://www.ibm.com/developerworks/java/library/j-facelets2.html

So now I don't use the standard namespace anymore but it works.

Hope it will help someone :-)

Regards,
Zied


2007/9/26, Zied Hamdi [EMAIL PROTECTED]:

 Hi Volker,

 JSTL can be used in facelets: I found that in an article
 http://www.ibm.com/developerworks/java/library/j-facelets/

 In the article, the snippet
 c:if test=${empty label}
 c:set var=label value=${fieldName} /
 /c:if
  comes very handy. The rendered attribute can't do the work anymore in
 such cases.

 I didn't see Bernd in posts these last days, maybe he's in holidays.

 Regards,
 Zied


 2007/9/26, Volker Weber [EMAIL PROTECTED]:
 
  Hi Zied,
 
  i have no experience with facelets, but afaik jstl is a jsp taglib and
  not facelets compatible.
 
  i never tested tobago with 1.2 maybe bernd knows more.
 
 
  Regards,
 Volker
 
  2007/9/26, Zied Hamdi [EMAIL PROTECTED]:
   Hi again,
  
   Sorry for spamming, I forgot to say it's possible to do wihout JSTL
  playing
   with the rendered attribute or using tc:sheet or tc:forEach. The
  question
   is: is tobago still not compatible with JSTL under JSF 1.2?
  
   Regards,
   Zied
  
  
   2007/9/26, Zied Hamdi [EMAIL PROTECTED]:
   
Hi,
   
I'm under JSF 1.2 (RI), Facelets 1.12 and a Tobago nightly 1.0.12 of
   yesterday, I'm trying to use JSTL 1.1 but even the simplest example
  fails:
   
   
 c:if test= false 
   
   tc:out value =test /tc:out 
   
/ c:if 
   
prints test anyway.
   
Even more strange : when calling
   
   
 c:if test=' #{icf:instanceOf( str, java.lang.Long

Re: [tobago] JSTL problem

2007-09-27 Thread Zied Hamdi
Sorry erratum,

The namespace used by facelets jstl is

http://java.sun.com/jstl/core
and not

http://java.sun.com/jsp/jstl/core
that was the problem. Too much noise for nothing.

Regards,
Zied


2007/9/27, Zied Hamdi [EMAIL PROTECTED]:

 Hi again,

 So to answer to people who could encounter the same problem as me:
 facelets is bundled with its ows JSTL implementation (you were right Volker
 ;-) that has nothing to do with the standard one except that it copies its
 syntax:
 https://facelets.dev.java.net/nonav/docs/dev/docbook.html#taglib-available-jstl
 .

 The biggest probem is that where your c:if goes when it's called isn't
 easy to follow at all. I realized it doesn't go into *
 com.sun.facelets.tag.jstl.core.* *IfHandler* (added a breakpoint). A big
 mistake (in my opinion) is that facelets gives his implementation the same
 namespace as the one for standard JSTL: 
 xmlns:c=http://java.sun.com/jsp/jstl/core
 This is a problem because the objective of namespaces is to distinguish
 between implementations of different types, it is amplified because wen you
 have a jstl jar in you classpath, the code is redirected to it (at least
 that's what happened to me)

 So even though I removed all my jars from my app jstl.jar (and
 standard.jar) files, JBoss has in its default libs jstl.jar that he puts
 for all applications. \JBoss\server\*default* 
 \deploy\jboss-web.deployer\(that is copied to JBoss\server\default\tmp\deploy)

 Even after removing this jar, my calls didn't redirect to *IfHandler*(surely 
 another perverse jstl implementation somewhere) so to be radical I
 changed the namespace like this: I copied the init code in *JstlCoreLibrary
 *into my own library:


 package fr.into.common.functions;



 import java.lang.reflect.Method;

 import java.lang.reflect.Modifier;



 import com.sun.facelets.tag.AbstractTagLibrary;

 import com.sun.facelets.tag.jstl.core.CatchHandler ;

 import com.sun.facelets.tag.jstl.core.ChooseHandler ;

 import com.sun.facelets.tag.jstl.core.ChooseOtherwiseHandler ;

 import com.sun.facelets.tag.jstl.core.ChooseWhenHandler ;

 import com.sun.facelets.tag.jstl.core.ForEachHandler ;

 import com.sun.facelets.tag.jstl.core.IfHandler;

 import com.sun.facelets.tag.jstl.core.SetHandler;



 public class CommonFunctionsTagLibrary extends AbstractTagLibrary {

   public static final String
 NAMESPACE= http://www.into-i.fr/facelets/common/functions
 ;

   public static final CommonFunctionsTagLibrary   INSTANCE= new
 CommonFunctionsTagLibrary();



   public CommonFunctionsTagLibrary() {

 super( NAMESPACE );



 try {

   Method[] methods = CommonFunctions.class.getMethods();



   for( int i = 0; i  methods.length; i++ ) {

 if( Modifier.isStatic( methods[i].getModifiers() )
 ) {

   addFunction( methods[i].getName(),
 methods[i] );

 }

   }

 } catch( Exception e ) {

   throw new RuntimeException( e );

 }

 this.addTagHandler( if, IfHandler.class );



 this.addTagHandler( forEach, ForEachHandler.class );



 this.addTagHandler( catch, CatchHandler.class );



 this.addTagHandler( choose, ChooseHandler.class );



 this.addTagHandler( when, ChooseWhenHandler.class );



 this.addTagHandler( otherwise, ChooseOtherwiseHandler.class);



 this.addTagHandler( set, SetHandler.class );

   }



 }

 see this link for creating your own libs: 
 http://www.ibm.com/developerworks/java/library/j-facelets2.html


 So now I don't use the standard namespace anymore but it works.

 Hope it will help someone :-)

 Regards,
 Zied


 2007/9/26, Zied Hamdi [EMAIL PROTECTED]:
 
  Hi Volker,
 
  JSTL can be used in facelets: I found that in an article 
  http://www.ibm.com/developerworks/java/library/j-facelets/
 
 
  In the article, the snippet
  c:if test=${empty label}
  c:set var=label value=${fieldName} /
  /c:if
   comes very handy. The rendered attribute can't do the work anymore in
  such cases.
 
  I didn't see Bernd in posts these last days, maybe he's in holidays.
 
  Regards,
  Zied
 
 
  2007/9/26, Volker Weber [EMAIL PROTECTED]:
  
   Hi Zied,
  
   i have no experience with facelets, but afaik jstl is a jsp taglib and
   not facelets compatible.
  
   i never tested tobago with 1.2 maybe bernd knows more.
  
  
   Regards,
  Volker
  
   2007/9/26, Zied Hamdi  [EMAIL PROTECTED]:
Hi again,
   
Sorry for spamming, I forgot to say it's possible to do wihout JSTL
   playing
with the rendered attribute or using tc:sheet or tc:forEach. The
   question
is: is tobago still not compatible with JSTL under JSF 1.2?
   
Regards,
Zied
   
   
2007/9/26, Zied Hamdi  [EMAIL PROTECTED]:

 Hi,

 I'm under JSF 1.2 (RI), Facelets 1.12

[tobago] JSTL problem

2007-09-26 Thread Zied Hamdi
Hi,

I'm under JSF 1.2 (RI), Facelets 1.12 and a Tobago nightly 1.0.12 of
yesterday, I'm trying to use JSTL 1.1 but even the simplest example fails:


c:if test=false

  tc:out value=test/tc:out

/c:if

prints test anyway.

Even more strange : when calling

c:if test='#{icf:instanceOf( str, java.lang.Long )}'

  tc:out value=test2/tc:out

/c:if
Where instanceOf is a function of mine, the function is executed but its
result seems to be ignored anyway.

The problem is not only with c:if. The tag c:forEach enters the loop only
once (when items are numerous) and fills its var argument with null.

Browsing the mailing list I've found a lot of posts talking about using JSTL
and some seem to discourage using it with tobago, but some seem to use it
without problems.

I also have these error logs, that maybe related to the problem:

5:33:48,375 INFO  [STDOUT] 2007-09-26 15:33:48,375 [http-127.0.0.1-8080-3]
ERROR org.apache.myfaces.tobago.webapp.TobagoResponseWriterImpl.endElement(242)
- Element end with name='div' doesn't match with top element on the
stack='c:if' (*GridLayoutRenderer.java:381*)

15:33:48,375 INFO  [STDOUT] 2007-09-26 15:33:48,375 [http-127.0.0.1-8080-3]
ERROR org.apache.myfaces.tobago.webapp.TobagoResponseWriterImpl.endElement(242)
- Element end with name='td' doesn't match with top element on the
stack='div' (*GridLayoutRenderer.java:382*)

15:33:48,375 INFO  [STDOUT] 2007-09-26 15:33:48,375 [http-127.0.0.1-8080-3]
ERROR org.apache.myfaces.tobago.webapp.TobagoResponseWriterImpl.endElement(242)
- Element end with name='tr' doesn't match with top element on the
stack='td' (*GridLayoutRenderer.java:388*)

15:33:48,375 INFO  [STDOUT] 2007-09-26 15:33:48,375 [http-127.0.0.1-8080-3]
ERROR org.apache.myfaces.tobago.webapp.TobagoResponseWriterImpl.endElement(242)
- Element end with name='c:if' doesn't match with top element on the
stack='div' (*EndElementInstruction.java:39*)

15:33:48,390 INFO  [STDOUT] 2007-09-26 15:33:48,390 [http-127.0.0.1-8080-3]
ERROR org.apache.myfaces.tobago.webapp.TobagoResponseWriterImpl.endElement(242)
- Element end with name='div' doesn't match with top element on the
stack='td' (*GridLayoutRenderer.java:381*)

15:33:48,390 INFO  [STDOUT] 2007-09-26 15:33:48,390 [http-127.0.0.1-8080-3]
ERROR org.apache.myfaces.tobago.webapp.TobagoResponseWriterImpl.endElement(242)
- Element end with name='td' doesn't match with top element on the
stack='tr' (*GridLayoutRenderer.java:382*)



Can you please confirm me if it's a bug or if I have to continue
investigation?



Regards,

Zied


Re: [tobago] JSTL problem

2007-09-26 Thread Zied Hamdi
Hi again,

Sorry for spamming, I forgot to say it's possible to do wihout JSTL playing
with the rendered attribute or using tc:sheet or tc:forEach. The question
is: is tobago still not compatible with JSTL under JSF 1.2?

Regards,
Zied


2007/9/26, Zied Hamdi [EMAIL PROTECTED]:

 Hi,

 I'm under JSF 1.2 (RI), Facelets 1.12 and a Tobago nightly 1.0.12 of
 yesterday, I'm trying to use JSTL 1.1 but even the simplest example fails:


 c:if test= false

tc:out value =test /tc:out 

 /c:if 

 prints test anyway.

 Even more strange : when calling

 c:if test=' #{icf:instanceOf( str, java.lang.Long )}' 

tc:out value =test2 /tc:out 

 /c:if 
 Where instanceOf is a function of mine, the function is executed but its
 result seems to be ignored anyway.

 The problem is not only with c:if. The tag c:forEach enters the loop only
 once (when items are numerous) and fills its var argument with null.

 Browsing the mailing list I've found a lot of posts talking about using
 JSTL and some seem to discourage using it with tobago, but some seem to use
 it without problems.

 I also have these error logs, that maybe related to the problem:

 5:33 :48,375 INFO   [STDOUT] 2007-09-26 15:33 :48,375 [
 http-127.0.0.1-8080-3] ERROR
 org.apache.myfaces.tobago.webapp.TobagoResponseWriterImpl.endElement(242)
 - Element end with name='div' doesn't match with top element on the
 stack='c:if' ( *GridLayoutRenderer.java:381* )

 15:33 :48,375 INFO   [STDOUT] 2007-09-26 15:33 :48,375 [
 http-127.0.0.1-8080-3] ERROR
 org.apache.myfaces.tobago.webapp.TobagoResponseWriterImpl.endElement(242)
 - Element end with name='td' doesn't match with top element on the
 stack='div' (* GridLayoutRenderer.java:382* )

 15:33 :48,375 INFO   [STDOUT] 2007-09-26 15:33 :48,375 [
 http-127.0.0.1-8080-3] ERROR
 org.apache.myfaces.tobago.webapp.TobagoResponseWriterImpl.endElement(242)
 - Element end with name='tr' doesn't match with top element on the
 stack='td' (* GridLayoutRenderer.java:388* )

 15:33 :48,375 INFO   [STDOUT] 2007-09-26 15:33 :48,375 [
 http-127.0.0.1-8080-3] ERROR
 org.apache.myfaces.tobago.webapp.TobagoResponseWriterImpl.endElement(242)
 - Element end with name='c:if' doesn't match with top element on the
 stack='div' ( *EndElementInstruction.java:39* )

 15:33 :48,390 INFO   [STDOUT] 2007-09-26 15:33 :48,390 [
 http-127.0.0.1-8080-3] ERROR
 org.apache.myfaces.tobago.webapp.TobagoResponseWriterImpl.endElement(242)
 - Element end with name='div' doesn't match with top element on the
 stack='td' (* GridLayoutRenderer.java:381* )

 15:33 :48,390 INFO   [STDOUT] 2007-09-26 15:33 :48,390 [
 http-127.0.0.1-8080-3] ERROR
 org.apache.myfaces.tobago.webapp.TobagoResponseWriterImpl.endElement(242)
 - Element end with name='td' doesn't match with top element on the
 stack='tr' (* GridLayoutRenderer.java:382* )



 Can you please confirm me if it's a bug or if I have to continue
 investigation?



 Regards,

 Zied




-- 
Zied Hamdi
zatreex.sourceforge.net


Re: [tobago] JSTL problem

2007-09-26 Thread Zied Hamdi
Hi Volker,

JSTL can be used in facelets: I found that in an article
http://www.ibm.com/developerworks/java/library/j-facelets/

In the article, the snippet
c:if test=${empty label}
c:set var=label value=${fieldName} /
/c:if
 comes very handy. The rendered attribute can't do the work anymore in such
cases.

I didn't see Bernd in posts these last days, maybe he's in holidays.

Regards,
Zied


2007/9/26, Volker Weber [EMAIL PROTECTED]:

 Hi Zied,

 i have no experience with facelets, but afaik jstl is a jsp taglib and
 not facelets compatible.

 i never tested tobago with 1.2 maybe bernd knows more.


 Regards,
Volker

 2007/9/26, Zied Hamdi [EMAIL PROTECTED]:
  Hi again,
 
  Sorry for spamming, I forgot to say it's possible to do wihout JSTL
 playing
  with the rendered attribute or using tc:sheet or tc:forEach. The
 question
  is: is tobago still not compatible with JSTL under JSF 1.2?
 
  Regards,
  Zied
 
 
  2007/9/26, Zied Hamdi [EMAIL PROTECTED]:
  
   Hi,
  
   I'm under JSF 1.2 (RI), Facelets 1.12 and a Tobago nightly 1.0.12 of
  yesterday, I'm trying to use JSTL 1.1 but even the simplest example
 fails:
  
  
c:if test= false 
  
  tc:out value =test /tc:out 
  
   / c:if 
  
   prints test anyway.
  
   Even more strange : when calling
  
  
c:if test=' #{icf:instanceOf( str, java.lang.Long
 )}' 
  
  tc:out value =test2 /tc:out 
  
   / c:if Where instanceOf is a function of mine, the
 function
  is executed but its result seems to be ignored anyway.
  
   The problem is not only with c:if. The tag c:forEach enters the loop
 only
  once (when items are numerous) and fills its var argument with null.
  
   Browsing the mailing list I've found a lot of posts talking about
 using
  JSTL and some seem to discourage using it with tobago, but some seem to
 use
  it without problems.
  
   I also have these error logs, that maybe related to the problem:
  
  
   5:33 :48,375 INFO   [STDOUT] 2007-09-26 15:33 :48,375
  [http-127.0.0.1-8080-3] ERROR
  org.apache.myfaces.tobago.webapp.TobagoResponseWriterImpl.endElement
 (242)
  - Element end with name='div' doesn't match with top element on the
  stack='c:if' ( GridLayoutRenderer.java:381 )
  
   15:33 :48,375 INFO   [STDOUT] 2007-09-26 15:33 :48,375
  [http-127.0.0.1-8080-3] ERROR
  org.apache.myfaces.tobago.webapp.TobagoResponseWriterImpl.endElement
 (242)
  - Element end with name='td' doesn't match with top element on the
  stack='div' ( GridLayoutRenderer.java:382 )
  
   15:33 :48,375 INFO   [STDOUT] 2007-09-26 15:33 :48,375
  [http-127.0.0.1-8080-3] ERROR
  org.apache.myfaces.tobago.webapp.TobagoResponseWriterImpl.endElement
 (242)
  - Element end with name='tr' doesn't match with top element on the
  stack='td' ( GridLayoutRenderer.java:388 )
  
   15:33 :48,375 INFO   [STDOUT] 2007-09-26 15:33 :48,375
  [http-127.0.0.1-8080-3] ERROR
  org.apache.myfaces.tobago.webapp.TobagoResponseWriterImpl.endElement
 (242)
  - Element end with name='c:if' doesn't match with top element on the
  stack='div' ( EndElementInstruction.java:39 )
  
   15:33 :48,390 INFO   [STDOUT] 2007-09-26 15:33 :48,390
  [http-127.0.0.1-8080-3] ERROR
  org.apache.myfaces.tobago.webapp.TobagoResponseWriterImpl.endElement
 (242)
  - Element end with name='div' doesn't match with top element on the
  stack='td' ( GridLayoutRenderer.java:381 )
  
   15:33 :48,390 INFO   [STDOUT] 2007-09-26 15:33 :48,390
  [http-127.0.0.1-8080-3] ERROR
  org.apache.myfaces.tobago.webapp.TobagoResponseWriterImpl.endElement
 (242)
  - Element end with name='td' doesn't match with top element on the
  stack='tr' ( GridLayoutRenderer.java:382 )
  
  
  
   Can you please confirm me if it's a bug or if I have to continue
  investigation?
  
  
  
   Regards,
  
   Zied
 
 
 
  --
  Zied Hamdi
  zatreex.sourceforge.net




-- 
Zied Hamdi
zatreex.sourceforge.net


Re: [tobago] popup doesn't support tab groups?

2007-09-25 Thread Zied Hamdi
Hi Volker,

Wow you're right !!! It works :-).

Thanks a lot,
Zied


2007/9/25, Volker Weber [EMAIL PROTECTED]:

 Hi Zied,

 the tobago_selectTab is a javascript function which is defined in tab.js.

 I think you run into the same problem as i two weeks ago, when
 changing a old (non ajax) app to use ajax reload of a sheet.

 You must add
   ajax-enabledtrue/ajax-enabled
 to your tobago-config.xml

 the default is currently false but i'm going to switch default to true:

 http://www.nabble.com/-tobago--config-option-ajax-enabled-tf4429742.html#a12636973


 Regards,
Volker

 2007/9/24, Zied Hamdi [EMAIL PROTECTED]:
  Hi Volker,
 
  The problem I have is different: in both ie7 and firefox2 I have
 javascript
  errors when I click on the tab.
 
  Under firefox the error is: tobago_selectTab is not defined (see
 figure).
  I didn't name any of my components this way... Maybe it is because I
 wrote
  my tab group directly inside the tc:popup without a layouting panel.
 
  Anyway, I prefer to upgrade to the latest nightly builds before telling
 you
  more, it's been a while I'm using old jars.
 
  Here's my code in the case the error is obvious for you...
 
 
  contract.xhtml
  ...
 
 
 tc:box
 
   id =taskTablePanel
 
   label =#{i18n.planning} 
 
f:facet name =toolBar 
 
 tc:toolBar
 
   tc:toolBarCommand
 
image
  =image/new.GIF
 
action
  =#{contractCtrl.newTaskCmd}
 
   tip= |nouvelle
  tache
 
tc:attribute
 
  value
  =taskEditPopup
 
  name
  =renderedPartially /
 
 f:facet name
  =popup 
 
   tc:popup
 
id
  =taskEditPopup
 
 
  height =400px
 
width
  =500px 
 

  tc:box label= |Tache
 
 
   f:facet name =layout 
 
 
 tc:gridLayout rows =*;fixed /
 
 
  / f:facet
 
 
   ui:include src =/contract/workTask.xhtml /
 
 
   tc:cell
 
 
 f:facet name =layout 
 
 
   tc:gridLayout
 
 
columns= 100px;1*;100px
 
 
   marginLeft = 10px
 
 
marginRight= 10px /
 
 
/ f:facet
 
 
 tc:button
 
 
  label =#{i18n.ok}
 
 
  action= #{contractCtrl.addTaskCmd}
 
 
   tc:attribute
 
 
   name = popupClose
 
 
value= afterSubmit /
 
 
/ tc:button
 
 
 tc:cell /
 
 
 tc:button label =#{i18n.cancel} 
 
 
   tc:attribute
 
 
   name = popupClose
 
 
   value = immediate /
 
 
/ tc:button
 
 
  / tc:cell
 
/
  tc:box
 
  /
  tc:popup
 
/ f:facet
 
  / tc:toolBarCommand
 
/ tc:toolBar
 
   / f:facet
 
 
 
f:subview id =taskTableSubview 
 
 ui:include src
 =/contract/taskTable.xhtml
  /
 
   /f:subview 
 
/tc:box 
 
  ...
 
  worktask.xhtml
 
 
   tc:tabGroup
 
xmlns= http://www.w3.org/1999/xhtml;
 
xmlns:f= http://java.sun.com/jsf/core;
 
xmlns:h= http://java.sun.com/jsf/html;
 
xmlns:tc=
  http://myfaces.apache.org/tobago/component;
 
xmlns:tx=
  http://myfaces.apache.org/tobago/extension;
 
xmlns:ui= http://java.sun.com/jsf/facelets;
 
xmlns:t= http://myfaces.apache.org/tomahawk;
 
tc:tab label =#{i18n.task}
 
 
 
  f:facet name= layout
 
  tc:gridLayout
 
   columns =*;*
 
   rows
  =fixed;fixed;fixed;fixed;fixed;fixed /
 
   / f:facet
 
 
 
tx:date
 
 id =workStartDate
 
 value =#{intervention.workStart}
 
 label =#{i18n.workStartDate} 
 
  f:convertDateTime pattern =dd.MM. /
 
   / tx:date
 
 
 
tc:cell
 
  f:facet name =layout 
 
tc:gridLayout columns =*;* /
 
 / f:facet
 
  tc:time
 
   id =workStart
 
   value =#{intervention.workStart

Re: [tobago] tc:tree selection gives a null element in treeState

2007-09-25 Thread Zied Hamdi
Hi again,

I've just seen this post : Re: Display tobago selectable tree
http://www.mail-archive.com/users@myfaces.apache.org/msg32004.html

So sorry for disturbing :-).

Regards,
Zied





2007/9/25, Zied Hamdi [EMAIL PROTECTED]:

 Hi,

 I'm in my first example with tc:tree, and I have a problem getting the
 selected element (I receive a Set containing a null element: even though the
 tree displays correctly (with the correct name) the node I select).
 This is my code:

  tc:box

   xmlns= http://www.w3.org/1999/xhtml;

   xmlns:f= http://java.sun.com/jsf/core;

   xmlns:h= http://java.sun.com/jsf/html;

   xmlns:t= http://myfaces.apache.org/tomahawk;

   xmlns:tc= http://myfaces.apache.org/tobago/component;

   xmlns:tx= http://myfaces.apache.org/tobago/extension;

   label= #{i18n.category}

tc:tree

 id =cateoriesTree

 value =#{contractCtrl.categoriesRoot}

 state =#{contractCtrl.treeState}

 showIcons =true

 selectable =single

 nameReference 
 =userObject.embedded.namehttp://userobject.embedded.name/
  

   /tc:tree 

 / tc:box


 and in my bb I do this:

   *public* String setCategoryCmd() *throws* Throwable {

 SetDefaultMutableTreeNode selection = treeState.getSelection();

 *if* ( selection.size() == 0 || selection.size()  1 )

   *return* *null* ;

 ContractCommandExecuter commandExecuter =
 (ContractCommandExecuter) getCurrentCommandExecuter();

 ContractParameters contractParameters = (ContractParameters)
 commandExecuter.getCommandParameters();

 contractParameters.setSelectedCaltegory( (Category)
 selection.iterator().next().getUserObject() );

 *return* commandExecuter.execute(ContractRequests.*
 SET_CATEGORY* );

   }



 after Selecting a node and submitting,

 selection.iterator().next() returns null;



 Here's how I submit:

 tc:cell 

f:facet name =layout 

  tc:gridLayout columns =fixed;* /

   / f:facet

tc:link

 id =category

 label =#{i18n.category}

 action =#{contractCtrl.loadCategoriesCmd} 

  tc:attribute

  value =categoryPopup

  name= renderedPartially /

  f:facet name =popup 

   tc:popup

id =categoryPopup

height =600px

width =300px 

 tc:panel

   f:facet name =layout 

 tc:gridLayout rows =*;fixed
 /

  / f:facet

   tc:cell

 ui:include src 
 =/contract/categories.xhtml
 /

  / tc:cell

   tc:panel

 f:facet name =layout 

   tc:gridLayout

columns =
 100px;1*;100px

marginLeft =
 10px

marginRight =10px
 /

/ f:facet

 tc:button

  label =#{i18n.ok}

  action =#{
 contractCtrl.setCategoryCmd} 

   tc:attribute

name =
 popupClose

value 
 =afterSubmit
 /

/ tc:button

 tc:cell /

 tc:button label =#{
 i18n.cancel} 

   tc:attribute

name =
 popupClose

value =immediate
 /

/ tc:button

  / tc:panel

/ tc:panel

  / tc:popup

 / f:facet

   / tc:link

tc:label value =#{intervention.category.name} /

 /tc:cell 



 Any ideas please?

 Regards,
 Zied




-- 
Zied Hamdi

Re: [tobago] tc:tree selection gives a null element in treeState

2007-09-25 Thread Zied Hamdi
Hi,

Please, in which condition does the following code return null?

DefaultMutableTreeNode marker = treeState.getMarker();
In fact DefaultTreeActionListener does nothing because it finds null when I
click on the new node icon...


Regards,
Zied



2007/9/25, Zied Hamdi [EMAIL PROTECTED]:

 Hi again,

 I've just seen this post : Re: Display tobago selectable tree 
 http://www.mail-archive.com/users@myfaces.apache.org/msg32004.html


 So sorry for disturbing :-).

 Regards,
 Zied





 2007/9/25, Zied Hamdi [EMAIL PROTECTED]:
 
  Hi,
 
  I'm in my first example with tc:tree, and I have a problem getting the
  selected element (I receive a Set containing a null element: even though the
  tree displays correctly (with the correct name) the node I select).
  This is my code:
 
   tc:box
 
xmlns=  http://www.w3.org/1999/xhtml;
 
xmlns:f=  http://java.sun.com/jsf/core;
 
xmlns:h=  http://java.sun.com/jsf/html;
 
xmlns:t=  http://myfaces.apache.org/tomahawk;
 
xmlns:tc=  http://myfaces.apache.org/tobago/component;
 
xmlns:tx=  http://myfaces.apache.org/tobago/extension;
 
label = #{i18n.category}
 
 tc:tree
 
  id =cateoriesTree
 
  value =#{contractCtrl.categoriesRoot}
 
  state =#{contractCtrl.treeState}
 
  showIcons =true
 
  selectable =single
 
  nameReference 
  =userObject.embedded.namehttp://userobject.embedded.name/
  
 
/tc:tree 
 
  / tc:box
 
 
  and in my bb I do this:
 
*public* String setCategoryCmd() *throws* Throwable {
 
  SetDefaultMutableTreeNode selection = 
  treeState.getSelection();
 
  *if* ( selection.size() == 0 || selection.size()  1 )
 
*return* *null* ;
 
  ContractCommandExecuter commandExecuter =
  (ContractCommandExecuter) getCurrentCommandExecuter();
 
  ContractParameters contractParameters = (ContractParameters)
  commandExecuter.getCommandParameters();
 
  contractParameters.setSelectedCaltegory( (Category)
  selection.iterator().next().getUserObject() );
 
  *return* commandExecuter.execute(ContractRequests.*
  SET_CATEGORY* );
 
}
 
 
 
  after Selecting a node and submitting,
 
  selection.iterator().next() returns null;
 
 
 
  Here's how I submit:
 
   tc:cell 
 
 f:facet name =layout 
 
   tc:gridLayout columns =fixed;* /
 
/ f:facet
 
 tc:link
 
  id =category
 
  label =#{i18n.category}
 
  action =#{contractCtrl.loadCategoriesCmd} 
 
   tc:attribute
 
   value =categoryPopup
 
   name = renderedPartially /
 
   f:facet name =popup 
 
tc:popup
 
 id =categoryPopup
 
 height =600px
 
 width =300px 
 
  tc:panel
 
f:facet name =layout 
 
  tc:gridLayout rows 
  =*;fixed
  /
 
   / f:facet
 
tc:cell
 
  ui:include src 
  =/contract/categories.xhtml
  /
 
   / tc:cell
 
tc:panel
 
  f:facet name = layout
 
tc:gridLayout
 
 columns =
  100px;1*;100px
 
 marginLeft =
  10px
 
 marginRight 
  =10px
  /
 
 / f:facet
 
  tc:button
 
   label =#{i18n.ok}
 
   action =#{
  contractCtrl.setCategoryCmd} 
 
tc:attribute
 
 name =
  popupClose
 
 value 
  =afterSubmit
  /
 
 / tc:button
 
  tc:cell /
 
  tc:button label = #{
  i18n.cancel} 
 
tc:attribute
 
 name =
  popupClose

Re: [tobago] tc:tree selection gives a null element in treeState

2007-09-25 Thread Zied Hamdi
Hi,

I can't find non deprecated API for the tree in the demo examples (nor in
the javadoc), is there an alternative to UITreeOld?

Thanks,
Zied


2007/9/25, Zied Hamdi [EMAIL PROTECTED]:

 Hi,

 Please, in which condition does the following code return null?

 DefaultMutableTreeNode marker = treeState.getMarker();
 In fact DefaultTreeActionListener does nothing because it finds null when
 I click on the new node icon...


 Regards,
 Zied



 2007/9/25, Zied Hamdi [EMAIL PROTECTED]:
 
  Hi again,
 
  I've just seen this post : Re: Display tobago selectable tree 
  http://www.mail-archive.com/users@myfaces.apache.org/msg32004.html
 
 
  So sorry for disturbing :-).
 
  Regards,
  Zied
 
 
 
 
 
  2007/9/25, Zied Hamdi [EMAIL PROTECTED]:
  
   Hi,
  
   I'm in my first example with tc:tree, and I have a problem getting the
   selected element (I receive a Set containing a null element: even though 
   the
   tree displays correctly (with the correct name) the node I select).
   This is my code:
  
tc:box
  
 xmlns=  http://www.w3.org/1999/xhtml;
  
 xmlns:f=  http://java.sun.com/jsf/core;
  
 xmlns:h=  http://java.sun.com/jsf/html;
  
 xmlns:t=  http://myfaces.apache.org/tomahawk;
  
 xmlns:tc=  http://myfaces.apache.org/tobago/component;
  
 xmlns:tx=  http://myfaces.apache.org/tobago/extension;
  
 label = #{i18n.category}
  
  tc:tree
  
   id =cateoriesTree
  
   value =#{contractCtrl.categoriesRoot}
  
   state =#{contractCtrl.treeState}
  
   showIcons =true
  
   selectable =single
  
   nameReference 
   =userObject.embedded.namehttp://userobject.embedded.name/
   
  
 /tc:tree 
  
   / tc:box
  
  
   and in my bb I do this:
  
 *public* String setCategoryCmd() *throws* Throwable {
  
   SetDefaultMutableTreeNode selection = 
   treeState.getSelection();
  
   *if* ( selection.size() == 0 || selection.size()  1 )
  
 *return* *null* ;
  
   ContractCommandExecuter commandExecuter =
   (ContractCommandExecuter) getCurrentCommandExecuter();
  
   ContractParameters contractParameters =
   (ContractParameters) commandExecuter.getCommandParameters();
  
   contractParameters.setSelectedCaltegory( (Category)
   selection.iterator().next().getUserObject() );
  
   *return* commandExecuter.execute(ContractRequests.*
   SET_CATEGORY* );
  
 }
  
  
  
   after Selecting a node and submitting,
  
   selection.iterator().next() returns null;
  
  
  
   Here's how I submit:
  
tc:cell 
  
  f:facet name =layout 
  
tc:gridLayout columns =fixed;* /
  
 / f:facet
  
  tc:link
  
   id =category
  
   label =#{i18n.category}
  
   action =#{contractCtrl.loadCategoriesCmd} 
  
tc:attribute
  
value =categoryPopup
  
name = renderedPartially /
  
f:facet name =popup 
  
 tc:popup
  
  id =categoryPopup
  
  height =600px
  
  width =300px 
  
   tc:panel
  
 f:facet name =layout 
  
   tc:gridLayout rows 
   =*;fixed
   /
  
/ f:facet
  
 tc:cell
  
   ui:include src 
   =/contract/categories.xhtml
   /
  
/ tc:cell
  
 tc:panel
  
   f:facet name =layout
  
 tc:gridLayout
  
  columns =
   100px;1*;100px
  
  marginLeft=
   10px
  
  
   marginRight=10px
   /
  
  / f:facet
  
   tc:button
  
label =#{i18n.ok
   }
  
action =#{
   contractCtrl.setCategoryCmd} 
  
 tc:attribute
  
  name =
   popupClose
  
  value 
   =afterSubmit

Re: [tobago] tx:date displays incorrectly in sheets

2007-09-24 Thread Zied Hamdi
Thanks Bernd it works.

2007/9/22, Bernd Bohmann [EMAIL PROTECTED]:

 Hello Zied,

 please try 10px for labelWidth instead of 10.

 Regards

 Bernd

 Zied Hamdi wrote:
  Hi,
 
  Under facelets, I have an editable sheet in which I wanted to include
 dates;
  there are two disfunctions:
 
 - The date button doesn't display
 - the sheet line becomes two lines high (but increasing the width
 doesn't display any wrapped elements)
 
  Here's my code:
 
 
  tc:sheet
 
xmlns=http://www.w3.org/1999/xhtml;
 
xmlns:jsp=http://java.sun.com/JSP/Page;
 
xmlns:tc=http://myfaces.apache.org/tobago/component;
 
xmlns:tx=http://myfaces.apache.org/tobago/extension;
 
xmlns:ui=http://java.sun.com/jsf/facelets;
 
xmlns:h=http://java.sun.com/jsf/html;
 
xmlns:f=http://java.sun.com/jsf/core;
 
columns=*;*
 
value=#{contractCtrl.planning}
 
var=intervention
 
 
 
tc:column
 
  tc:link
 
id=workTaskDetailLink
 
image=image/edit.PNG
 
tc:attribute
 
  name=renderedPartially
 
  value=editContractForm /
 
f:facet name=popup
 
  tc:popup
 
   id=editContractForm
 
   height=200px
 
   width=200px
 
   tc:box label=test/tc:box
 
  /tc:popup
 
/f:facet
 
  /tc:link
 
/tc:column
 
 
 
tc:column label=|Categorie
 
  tc:link
 
id=category
 
label=#{intervention.category.name}
 
action=contract /
 
/tc:column
 
 
 
tc:column label=#{i18n.intervenant}
 
  tc:link
 
id=intervenant
 
label=#{intervention.intervenant.firstName} #{
  intervention.intervenant.lastName}
 
action=contract /
 
/tc:column
 
 
 
tc:column label=#{i18n.workStartDate}
 
  tx:date
 
id=workStartDate
 
value=#{intervention.workStart}
 
labelWidth=10
 
f:convertDateTime pattern=dd.MM. /
 
  /tx:date
 
/tc:column
 
 
 
tc:column label=#{i18n.workStartTime}
 
  tc:time
 
id=workStart
 
value=#{intervention.workStart} /
 
/tc:column
 
 
 
tc:column label=#{i18n.workEndTime}
 
  tc:time
 
id=workEnd
 
value=#{intervention.workEnd} /
 
/tc:column
 
 
 
tc:column label=#{i18n.workEndDate}
 
  tx:date
 
id=workEndDate
 
value=#{intervention.workEnd}
 
labelWidth=10
 
f:convertDateTime pattern=dd.MM. /
 
  /tx:date
 
/tc:column
 
 
 
tc:column label=#{note}
 
  tc:in value=#{intervention.note} /
 
/tc:column
 
  /tc:sheet
 
 
  Regards,
  Zied
 




-- 
Zied Hamdi
zatreex.sourceforge.net


[tobago] popup doesn't support tab groups?

2007-09-24 Thread Zied Hamdi
Hi,

I have created a popup with a tabgroup as its root element, the problem is
that we can't switch between tabs : clicks doesn't seem to be catched (but
the mouse shows the correct 'hand' cursor).

Regards,
Zied


Re: tx:date Popup is too small

2007-09-20 Thread Zied Hamdi
Hi Volker,

You're right I didn't change the font, but in my browser I've set the text
size as Biggest. I didn't realize that :-). Do I have to declare it as a
minor bug?

While we're in the subject, isn't there a component to select a time?
somethig like the lower part of the tx:date window when the pattern contains
time. It's a frequent task to choose only time without a date. I didn't see
a way to display this subwindow (even when I set the pattern to pattern =
HH:mm), is it because a java.util.Date object contains more data than what
the window uses, if it's the case, I'd say it doesn't matter for me to use
only a part of an object fields.

Thanks,
Zied

2007/9/20, Volker Weber [EMAIL PROTECTED]:

 Hi Zied,

 is this the Richmond or a custom theme?

 Looks like the font-size of the Month is to big which is not the case
 in the online demo.

 I you have a custom theme with a bigger font-size than default you
 need to addjust the

 Tobago.CalendarPopupWidth property in your custom
 tobago-theme-config.property file.


 Regards,
Volker

 2007/9/20, Zied Hamdi [EMAIL PROTECTED]:
  Hi,
 
  I have a bug that is maybe related to the one with multiple popups:
 
  My declaration :
 
tx:date
 
   id =workStartDate
 
   value =#{intervention.workStart}
 
   label =#{i18n.workStartDate} 
 
f:convertDateTime pattern =dd.MM. HH:mm /
 
/tx:date
  opens a popup too small to hold all the fields.
 
  p.s: This was maybe fixed, my version of tobago is a nightly from the
 end of
  august.
 
  Regards,
  Zied
 




-- 
Zied Hamdi
zatreex.sourceforge.net


Re: tx:date Popup is too small

2007-09-20 Thread Zied Hamdi
:-)) Ok I'm stupid!! I was searching for it in the tx...

Thanks :-)

2007/9/20, Volker Weber [EMAIL PROTECTED]:

 Hi,

 tc:time ?
 http://myfaces.apache.org/tobago/tobago-core/tlddoc/tc/time.html


 Regards,
Volker

 2007/9/20, Zied Hamdi [EMAIL PROTECTED]:
  Hi Volker,
 
  You're right I didn't change the font, but in my browser I've set the
 text
  size as Biggest. I didn't realize that :-). Do I have to declare it as
 a
  minor bug?
 
  While we're in the subject, isn't there a component to select a time?
  somethig like the lower part of the tx:date window when the pattern
 contains
  time. It's a frequent task to choose only time without a date. I didn't
 see
  a way to display this subwindow (even when I set the pattern to pattern
  =HH:mm ), is it because a java.util.Date object contains more data
 than
  what the window uses, if it's the case, I'd say it doesn't matter for me
 to
  use only a part of an object fields.
 
  Thanks,
  Zied
 
  2007/9/20, Volker Weber [EMAIL PROTECTED]:
   Hi Zied,
  
   is this the Richmond or a custom theme?
  
   Looks like the font-size of the Month is to big which is not the case
   in the online demo.
  
   I you have a custom theme with a bigger font-size than default you
   need to addjust the
  
   Tobago.CalendarPopupWidth property in your custom
   tobago-theme-config.property file.
  
  
   Regards,
  Volker
  
   2007/9/20, Zied Hamdi [EMAIL PROTECTED]:
Hi,
   
I have a bug that is maybe related to the one with multiple popups:
   
My declaration :
   
  tx:date
   
 id =workStartDate
   
 value =#{intervention.workStart}
   
 label =#{ i18n.workStartDate} 
   
  f:convertDateTime pattern =dd.MM. HH:mm /
   
  /tx:date
opens a popup too small to hold all the fields.
   
p.s: This was maybe fixed, my version of tobago is a nightly from
 the
  end of
august.
   
Regards,
Zied
   
  
 
 
 
  --
  Zied Hamdi
   zatreex.sourceforge.net




-- 
Zied Hamdi
zatreex.sourceforge.net


Re: tx:date Popup is too small

2007-09-20 Thread Zied Hamdi
Hi Volker,

Just added a minor bug for the subject @
https://issues.apache.org/jira/browse/TOBAGO-494

Regards,
Zied

2007/9/20, Zied Hamdi [EMAIL PROTECTED]:

 :-)) Ok I'm stupid!! I was searching for it in the tx...

 Thanks :-)

  2007/9/20, Volker Weber [EMAIL PROTECTED]:
 
  Hi,
 
  tc:time ?
  http://myfaces.apache.org/tobago/tobago-core/tlddoc/tc/time.html
 
 
  Regards,
 Volker
 
  2007/9/20, Zied Hamdi [EMAIL PROTECTED]:
   Hi Volker,
  
   You're right I didn't change the font, but in my browser I've set the
  text
   size as Biggest. I didn't realize that :-). Do I have to declare it
  as a
   minor bug?
  
   While we're in the subject, isn't there a component to select a time?
   somethig like the lower part of the tx:date window when the pattern
  contains
   time. It's a frequent task to choose only time without a date. I
  didn't see
   a way to display this subwindow (even when I set the pattern to
  pattern
   =HH:mm ), is it because a java.util.Date object contains more data
  than
   what the window uses, if it's the case, I'd say it doesn't matter for
  me to
   use only a part of an object fields.
  
   Thanks,
   Zied
  
   2007/9/20, Volker Weber [EMAIL PROTECTED]:
Hi Zied,
   
is this the Richmond or a custom theme?
   
Looks like the font-size of the Month is to big which is not the
  case
in the online demo.
   
I you have a custom theme with a bigger font-size than default you
need to addjust the
   
Tobago.CalendarPopupWidth property in your custom
tobago-theme-config.property file.
   
   
Regards,
   Volker
   
2007/9/20, Zied Hamdi [EMAIL PROTECTED] :
 Hi,

 I have a bug that is maybe related to the one with multiple
  popups:

 My declaration :

   tx:date

  id =workStartDate

  value =#{intervention.workStart}

  label =#{ i18n.workStartDate} 

   f:convertDateTime pattern =dd.MM. HH:mm /

   /tx:date
 opens a popup too small to hold all the fields.

 p.s: This was maybe fixed, my version of tobago is a nightly from
  the
   end of
 august.

 Regards,
 Zied

   
  
  
  
   --
   Zied Hamdi
zatreex.sourceforge.net
 



 --
 Zied Hamdi
 zatreex.sourceforge.net




-- 
Zied Hamdi
zatreex.sourceforge.net


Re: tx:date Popup is too small

2007-09-20 Thread Zied Hamdi
Thanks Volker,

I won't say it's because of ramadan :-).

Regards,
Zied


2007/9/20, Volker Weber [EMAIL PROTECTED]:

 http://myfaces.apache.org/tobago/tobago-core/tlddoc/tx/time.html

 2007/9/20, Zied Hamdi [EMAIL PROTECTED]:
  :-)) Ok I'm stupid!! I was searching for it in the tx...
 
  Thanks :-)
 
 
  2007/9/20, Volker Weber [EMAIL PROTECTED]:
   Hi,
  
   tc:time ?
  
  http://myfaces.apache.org/tobago/tobago-core/tlddoc/tc/time.html
  
  
   Regards,
  Volker
  
   2007/9/20, Zied Hamdi [EMAIL PROTECTED]:
Hi Volker,
   
You're right I didn't change the font, but in my browser I've set
 the
  text
size as Biggest. I didn't realize that :-). Do I have to declare
 it as
  a
minor bug?
   
While we're in the subject, isn't there a component to select a
 time?
somethig like the lower part of the tx:date window when the pattern
  contains
time. It's a frequent task to choose only time without a date. I
 didn't
  see
a way to display this subwindow (even when I set the pattern to
 pattern
=HH:mm ), is it because a java.util.Date object contains more data
  than
what the window uses, if it's the case, I'd say it doesn't matter
 for me
  to
use only a part of an object fields.
   
Thanks,
Zied
   
2007/9/20, Volker Weber [EMAIL PROTECTED]:
 Hi Zied,

 is this the Richmond or a custom theme?

 Looks like the font-size of the Month is to big which is not the
 case
 in the online demo.

 I you have a custom theme with a bigger font-size than default you
 need to addjust the

 Tobago.CalendarPopupWidth property in your custom
 tobago-theme-config.property file.


 Regards,
Volker

 2007/9/20, Zied Hamdi [EMAIL PROTECTED] :
  Hi,
 
  I have a bug that is maybe related to the one with multiple
 popups:
 
  My declaration :
 
tx:date
 
   id =workStartDate
 
   value =#{intervention.workStart}
 
   label =#{ i18n.workStartDate} 
 
f:convertDateTime pattern =dd.MM. HH:mm /
 
/tx:date
  opens a popup too small to hold all the fields.
 
  p.s: This was maybe fixed, my version of tobago is a nightly
 from
  the
end of
  august.
 
  Regards,
  Zied
 

   
   
   
--
Zied Hamdi
 zatreex.sourceforge.net
  
 
 
 
  --
 
  Zied Hamdi
   zatreex.sourceforge.net




-- 
Zied Hamdi
zatreex.sourceforge.net


Re: Input ValueChangeListener

2007-09-18 Thread Zied Hamdi
Hi Mario,

You didn't declare a form (tc:form), is it intentional?

Regards,
Zied


2007/9/18, Schröder, Mario [EMAIL PROTECTED]:

  Hi Pedro,



 thanks fort he tip. Butt he tag ‚autoSubmit' does not exists in the TLD (
 http://myfaces.apache.org/tobago/tobago-core/tlddoc-1.0.11/tc/in.html). Or
 do you mean to declare it somewhere else?



 Mario




  --

 *Von:* [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] *Im Auftrag
 von *Pedro Calcao
 *Gesendet:* Dienstag, 18. September 2007 10:30
 *An:* MyFaces Discussion
 *Betreff:* Re: Input  ValueChangeListener



 Hi Mario,

 Not sure if that can be the problem, but don't you need to set
 autoSubmit=true in your input component so that the event gets fired?

 Hope it helps :)

 Pedro

 On 9/18/07, *Schröder, Mario* [EMAIL PROTECTED] wrote:

 Hi,



 I'm having a problem with a valuechangelistener attached to an input field
 in Tobago.

 The method in the Bean is never been called. Strange enough, with Sun's
 JSF reference implementation and just one input field the listener works
 fine. But as soon as I add another input field nothing happens.

 What might be the problem?



 Any suggestions are appreciated.





 Here are snippets of my code:



 The Controller:



 …



 *public* *class** *EventController{

   *private* Log log;

   *private* String someValue;



   *public* EventController() {

 log = LogFactory.*getLog*(* this*.getClass());

   }



   *public* String getSomeValue() {

 *return* someValue;

   }



   *public* *void* setSomeValue(String someValue) {

 *this*. someValue = someValue;

   }



   *public* *void* processValueChange(ValueChangeEvent e)

   *throws* AbortProcessingException {

 log.info(  Change Event:  +e);

   }

 }



 The jsp:

  tc:page

 f:facet name= layout

   tc:gridLayout rows= fixed columns =fixed;fixed  /

 /f:facet 



 tc:out value= Value:/

 tc:in value=#{ controller.someValue} id= in valueChangeListener=
 #{controller.processValueChange} /



   / tc:page 



 Faces-config.xml:



  managed-bean

   managed-bean-name controller /managed-bean-name 

   managed-bean-class EventController /managed-bean-class 

   managed-bean-scope session /managed-bean-scope 

 / managed-bean










-- 
Zied Hamdi
zatreex.sourceforge.net


[tobago] layout of tc:selectManyCheckbox

2007-09-14 Thread Zied Hamdi
Hi all,

I'm encoutring a lyout problem, maybe this will sound like a feture request:
I'm attemping to layout a list of checkboxes belonging to the same value.
here's my code:


tc:selectManyCheckbox value=

  f:facet name=layout

tc:gridLayout columns=*;*/

  /f:facet

  tc:selectItem itemLabel=Lundi/

  tc:selectItem itemLabel=Mardi/

  tc:selectItem itemLabel=Mercredi/

  tc:selectItem itemLabel=Jeudi/

  tc:selectItem itemLabel=Vendredi/

  tc:selectItem itemLabel=Samedi/

  tc:selectItem itemLabel=Dimanche/

/tc:selectManyCheckbox

The set of tc:selectItem will be replaced by one unique tc:selectItems. The
problem is tha the facet doesn't have any effect on the layout...

Regards,
Zied

-- 
Zied Hamdi
zatreex.sourceforge.net


  1   2   >