Re: t:inputCalendar popup location

2007-01-28 Thread CD

It is defined in the .js files accompanying the distribution.

specifically, popcalendar_init.js and popcalendar.js (Not sure about the
exact filenames, going from memory here).



On 1/27/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:


I am getting this weird behavior where the popup dialog for the
t:inputCalendar tag pops up at the lower right of the window/screen.
This doesn't happen every place I have used t:inputCalendar, but happens
in one instance.  How is the position of the popup dialog defined or
controlled?



Re: debugging. navigation rules

2007-01-28 Thread Veit Guna
Hi.

I use

log4j.logger.org.apache.myfaces.application.NavigationHandlerImpl=DEBUG

in log4j.properties.

Regards,
Veit

shooali schrieb:
 Hi,
 
 How can I debug the navigation rules? Is there a way to set log level or
 debug level to see what really happens regarding the navigation, from viewid
 with action xxx to yyy etc.
 
 thanks,


problem with jscookmenu

2007-01-28 Thread Marco Mistroni

hi all,
  i am experiencing problems in my myfaces app regarding jscookmenu

When i load it in the jsf page, i am receiving the following error:

17:40:41,687 INFO  [STDOUT] 28-Jan-2007 17:40:41
com.sun.facelets.FaceletViewHan
dler handleRenderException
SEVERE: Error Rendering View[/main.xhtml]
java.lang.NullPointerException: value
   at javax.faces.model.SelectItem.init(SelectItem.java:69)
   at org.apache.myfaces.custom.navmenu.NavigationMenuItem
.init(Navigatio
nMenuItem.java:60)
   at org.apache.myfaces.custom.navmenu.NavigationMenuItem
.init(Navigatio
nMenuItem.java:75)
   at
org.apache.myfaces.custom.navmenu.NavigationMenuUtils.getNavigationMe
nuItemList(NavigationMenuUtils.java:63)
   at
org.apache.myfaces.custom.navmenu.jscookmenu.HtmlJSCookMenuRenderer.e
ncodeChildren(HtmlJSCookMenuRenderer.java:122)
   at javax.faces.component.UIComponentBase.encodeChildren
(UIComponentBase.
java:319)
   at com.sun.facelets.tag.jsf.ComponentSupport.encodeRecursive
(ComponentSu
pport.java:234)
   at com.sun.facelets.tag.jsf.ComponentSupport.encodeRecursive
(ComponentSu
pport.java:239)
   at com.sun.facelets.FaceletViewHandler.renderView(
FaceletViewHandler.jav
a:580)
   at org.apache.myfaces.lifecycle.LifecycleImpl.render(
LifecycleImpl.java:
352)
   at javax.faces.webapp.FacesServlet.service(FacesServlet.java:107)
   at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter
(Appl
icationFilterChain.java:252)
   at org.apache.catalina.core.ApplicationFilterChain.doFilter
(ApplicationF
ilterChain.java:173)
   at org.apache.myfaces.component.html.util.ExtensionsFilter.doFilter
(Exte
nsionsFilter.java:122)
   at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter
(Appl
icationFilterChain.java:202)
   at org.apache.catalina.core.ApplicationFilterChain.doFilter
(ApplicationF
ilterChain.java:173)
   at
org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(F
ilterChainProxy.java:264)
   at org.acegisecurity.intercept.web.FilterSecurityInterceptor.invoke
(Filt
erSecurityInterceptor.java:97)

i m not sure if i am missing something...

in my app i am including following related jars (i mbuilding it using
maven2)
- myfaces-all-1.1.1.jar
- tomahawk-1.1.1.jar
- jsf-facelets-1.1.10.jar
- el-api-1.2.jar
- el-ri-1.2.jar

here's my menu

!DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Transitional//EN
   http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd;
html xmlns=http://www.w3.org/1999/xhtml;
 xmlns:ui=http://java.sun.com/jsf/facelets;
 xmlns:t=http://myfaces.apache.org/tomahawk;

 t:jscookMenu layout=vbr theme=ThemeOffice
   t:navigationMenuItem id=nav_2
itemLabel=Budget

t:navigationMenuItem id=nav_2_1
 itemLabel=Insert Expense
itemValue=insertExpense
action=go_to_insertExpense
icon=images/myfaces.gif /
 t:navigationMenuItem id=nav_2_2
itemLabel=Query Expense
itemValue=queryExpense
action=go_to_queryExpense
icon=images/myfaces.gif /
 t:navigationMenuItem id=nav_2_3
itemLabel=Modify Expense
itemValue=Modify Expense
action=go_to_modifyExpense
icon=images/myfaces.gif /
 t:navigationMenuItem id=nav_2_4
itemLabel=Delete Expense
itemValue=deleteExpense
action=go_to_deleteExpense
icon=images/myfaces.gif /
 t:navigationMenuItem id=nav_2_4
itemLabel=TestPage
itemValue=testPage
action=go_to_testPage
icon=images/myfaces.gif /
/t:navigationMenuItem


/t:jscookMenu

/html

and here's my menu-config.xml (only part of it)

?xml version=1.0 encoding=UTF-8 ?

MenuConfig

 Displayers
Displayer   name=BudgetAppMenu
type=net.sf.navigator.displayer.DropDownMenuDisplayer/


 /Displayers

 Menus

 !--    Budget App Menus   ===
--
   Menu name=BudgetAppMain title=Budget description=budget menu
width=30 roles=ROLE_USER
  Item   name=TDLinsertEntry   title=Insert Expense
  location=insert.jsf roles=ROLE_SUPERVISOR/
  Item   name=TDLqueryEntry   title=Query Expenses
  location=queryRedirect.jsf/
  Item   name=TDLmodifyEntry   title=Modify Expenses
  location=modifyRedirect.jsf/
   Item   name=TDLdeleteEntry   title=Delete Expenses
  location=deleteRedirect.jsf/
  Item   name=TDLtestPage   title=Test Page
  location=test.jsf/


/Menu
 


could anyone tell me where the error is coming from?

thanks in advance and regards
Marco


Re: Hibernate Object and JSF Bean Design

2007-01-28 Thread stormspire

When I use OptimizeIt to check objects inside memory, I find many SQL String
inside, I doubt it is related to Hibernate.  I suspect the Hibernate object
life cycle doesn't end even a request is completed.

btw, I am using OpenSessionInView filter.



Mario Ivankovits wrote:
 
 Hi!
 Well, I work in an mid size project, approx 3000 java files and 300 jsps.
 No need for load balancing or failover, which makes things easier ;-)
   
 Oh, I forget, we directly use Hibernate Objects in our view too.
 
 
 Ciao,
 Mario
 
 
 

-- 
View this message in context: 
http://www.nabble.com/Hibernate-Object-and-JSF-Bean-Design-tf3032608.html#a8683409
Sent from the MyFaces - Users mailing list archive at Nabble.com.



stateChangeNotifier does not work with t:commandButton properly

2007-01-28 Thread Madhav Bhargava

Hi All,



I have been looking for a component like s:stateChangeNotifier for quite
some time and I am glad that it is there is sandbox finally.

The problem with this component is that it does not work properly with
t:commandButton component.



Consider the following code:



s:stateChangedNotifier

confirmationMessage=There are changes in the form. You will
loose all data if you choose to leave the form. Do you want to cancel?

excludedIds=_patientRegistration_proceed,
_patientRegistration_reset disabled=false/





And then you have the following buttons:



t:commandButton id=_patientRegistration_proceed forceId=true
value=Proceed action=#{patientRegistrationWizardBean.proceed}
actionFor=patientRegistration/

t:commandButton id=_patientRegistration_reset forceId=true
value=#{msg['button.demographicdetails.reset']}
action=#{patientRegistrationWizardBean.reset}/

t:commandButton id=_patientRegistration_cancel forceId=true
value=Cancel action=#{patientRegistrationWizardBean.cancel}/



Now the problem is that when I click the Cancel button then the popup
only appears for 2 seconds and then it vanishes and the control goes to
the action method attached with the command button.



However, this problem is not there with the command link. I have
something like:

t:commandLink id=_patientRegistration_dummy forceId=true
value=dummy/



Now if I click this link then the modal popup stays there till you click
a link.



I have following questions:

1. Does this component only work with t:commandLink component?

2. If I have a datagrid and one of the columns in the datagrid is a link
View Details. Say if there are 20 rows displayed in one page and there
are other command buttons on the page to control navigation. Then will I
have to put all the ID's for all the links in the column to prevent the
popup appearing on click of any of the View Details link?



Rgds,

Madhav



 CAUTION - Disclaimer *
This e-mail contains PRIVILEGED AND CONFIDENTIAL INFORMATION intended solely 
for the use of the addressee(s). If you are not the intended recipient, please 
notify the sender by e-mail and delete the original message. Further, you are 
not to copy, disclose, or distribute this e-mail or its contents to any other 
person and any such actions are unlawful. This e-mail may contain viruses. 
Infosys has taken every reasonable precaution to minimize this risk, but is not 
liable for any damage you may sustain as a result of any virus in this e-mail. 
You should carry out your own virus checks before opening the e-mail or 
attachment. Infosys reserves the right to monitor and review the content of all 
messages sent to or from this e-mail address. Messages sent to or from this 
e-mail address may be stored on the Infosys e-mail system.
***INFOSYS End of Disclaimer INFOSYS***

Re: [Tobago] Problem with JSTL

2007-01-28 Thread Udo Schnurpfeil

Hello Madan,

seens this is not a Tobago but a JSTL question.

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

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

Hope that helps

Udo

madan chowdary schrieb:

Hi all,

i was having problem with JSTL tag.

I want to display 20 text fields in each row.

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

So opted for c:forEach/.

I included jstl.jar in lib directory.

tried with both

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

and

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

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


tried with different versions of JSTL.But same error.

how to achieve my task using c:forEach/

thnx in regards,

Madan


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