validations in a form with listView
I have a form , this has a listview , listview contains a chekbox.Upon form submit I want atleast one check box to be checked, In a formvalidator I use form.get(id ) this returns formComponent and formcomponent has a method getValue()but in case of listView how can I retrieve the formComponent and its value?
wicket tinymce blank string
I use tinymce behaviour for my textarea. Suppose user enters in tinymce textarea white spaces and saves the form , the value for the property representing textarea is neither null nor blank string , and so I insert into database, is there any way I can identify if text from inymce is blank string ?
formsubmitbehaviour and textarea with tinymce behaviour
I have a form with a checkbox , text and a textarea with tinymce behaviour. I addedAjaxFormSubmitBehavior to the checkbox here the code add(new CheckBox(concur){ { add(new AjaxFormSubmitBehavior(ResolveFindingForm.this,onChange){ @Override protected void onSubmit(AjaxRequestTarget target) { Object s=((FormComponent)getForm().get(adjustedAmt)).getConvertedInput(); s=((FormComponent)getForm().get(actionTakedDesc)).getConvertedInput(); System.out.println(s); } @Override protected void onError(AjaxRequestTarget target) { } }); } }); on selecting the checkbox, in the onSubmit methood in AjaxFormSubmitBehavior I get the user entered value for adjustedAmt which is a text , but the user entered value for actionTakedDesc which is textarea with tinymce behaviour is always null. Please tell me why is it not updating for model with tinymce text ? I also have ajaxsubmitbutton which works fine , but AjaxFormSubmitBehavior is not updating value of tinymce textarea .
AjaxFormSubmitBehavior for on Select
can I add AjaxFormSubmitBehavior on a checkbox for onSelect i tried it is not working. new AjaxFormSubmitBehavior(ResolveFindingForm.this,onSelect)
reload a tab from TabbedPanel
I am using AjaxTabbedPanel and it contains several tabs all of them are PanelCachingTab , can I reload any one tab through ajax ?
jqery not getting called after ajax refresh
I added this jquery code to my page. $(document).ready(function(){ $(a.showHidePrograms).click( function () { var $div= $(this).parent().next(div); if($div.attr(class) == 'hide'){ $div.attr(class,show); }else{ $div.attr(class,hide); } } ); }); inside my html I have a table this contains anchor tag with class showHidePrograms. onclick of this anchor tag the function gets called everything is fine. This page also has some ajaxLinks on click of this link I repaint the table, after thiswhen I click on anchor tag the jquery script is not called , does repainting somehow hides this anchor from jquery ?
ajaxfallback
I am using AjaxLink all my application and we add to AjaxRequestTarget for repainting components , now we want to change it to use AjaxFallback , but in ajaxfallback AjaxRequestTarget is null and I get null pointer exception.Please tell me if there is any way I can move from AjaxLink to AjaxFallBack link without breaking ?
signout and redirect
here is my code to signout link. add(new LinkVoid(signout){ @Override public void onClick() { ((AuditWebSession)(Session.get())).signout(); throw new RestartResponseException(SSISignOutPage.class); } }); when user clicks on signout I expect to go to SSISignOutPage. but I end up with a different page which is set in applicationsettings IApplicationSettings settings= super.getApplicationSettings(); settings.setPageExpiredErrorPage(SessionExpiredPage.class); the SessionExpiredPage . please tell me what could be causing this ?
IE trouble with WebClientInfo
here is the little code I use to check the browser java script is enbled. WebClientInfo clientInfo = (WebClientInfo)WebRequestCycle.get().getClientInfo(); if(!clientInfo.getProperties().isJavaEnabled()){ throw new RestartResponseAtInterceptPageException(WrongBrowserPage.class); } but IE is displaying this page IE displays this message The XML page cannot be displayed Cannot view XML input using style sheet. Please correct the error and then click the Refresh javascript:location.reload() button, or try again later. -- System error: -2146697204. Error processing resource ' http://www.w3.org/TR/html4/loose.dtd'. I debugged wicket code here is the last method which throws exception this is from RequestCycle @Override protected ClientInfo newClientInfo() { if (getApplication().getRequestCycleSettings().getGatherExtendedBrowserInfo()) { Session session = getSession(); if (session.getMetaData(BROWSER_WAS_POLLED_KEY) == null) { // we haven't done the redirect yet; record that we will be // doing that now and redirect session.setMetaData(BROWSER_WAS_POLLED_KEY, Boolean.TRUE); String url = / + getRequest().getURL(); throw new RestartResponseException(newBrowserInfoPage(url)); } // if we get here, the redirect already has been done; clear // the meta data entry; we don't need it any longer is the client // info object will be cached too session.setMetaData(BROWSER_WAS_POLLED_KEY, (Boolean)null); } return new WebClientInfo(this); } the url created here is /app/?x=rC*Km3UdNNYSL8EdgnhrYQuMa2JQIeVhAdBuIHf1Nft-iJbh5IpH87wT5Qs97mQUAaRJ63IeKnk (is this right or missing anything?)
check browser version and java script enabled for every request
I want to check the browser version and java script enabled for every request using a servlet filter , I am currently using the org.apache.wicket.protocol.http.request.WebClientInfo, this just checks at the begin of session and uses the same information, is there anything to check browser information for every request
wicket example Simple tree
is it possible to put Ajaxlinks in tree nodes ?
tinymmce with wicket 1.4.6
tinymce I repackaged it with latest java script from tinymce to work properly.It was working fine with 1.4.1 , I updated my wicket to 1.4.6 none of additional plugins from tinymce are working ,please tell me tinymce compatibility with wicket 1.4.6 ?
dropdown choice null value
dropdown choice I call setNullValid(true), the null value is a blank string ,can I change this to Choose One by overriding some method , I do not want to use the property file , I want to do it by overriding a method , Please tell me how can I ?
moving to spring 3
I am using wicket 1.4.1 , can I move to spring 3 ?
jazzy spell cheker
I am trying to use jazzy spell cheker for my app. I end up with this error message Jan 18, 2010 1:11:13 AM org.tinymce.spellchecker.TinyMCESpellCheckerServlet doPost WARNING: There is no dictionaries for the language=en org.tinymce.spellchecker.SpellCheckException: There is no dictionaries for the language=en inside my i have web-inf/dictionary/jazzy/en-us/en-us.0 web-inf/dictionary/jazzy/global/global.0 what more do I need ?
add additional tinymce settinngs
I want to add addfitional setting to tinymce init by default TinyMCESettings adds the follwoing tinyMCE.init({ mode : exact, elements : recommendation24c, language : en, theme : simple }); please tell me how to add the additional setting ? tinyMCE.init({ mode : exact, elements : d_vsebina,d_cilji, width : 100%, content_css: arial.css, valid_elements : p,ul[type],ol[type],li,b,i,u, paste_auto_cleanup_on_paste : true, paste_convert_headers_to_strong : false, paste_strip_class_attributes : all });
error page
We created our custom error page so any time error happens wicket redirects to this error page , I want also want to display the exception stack trace in this page , please tell me how to do this ?
wicket 1.4.5
I am currently using wicket 1.4 also I use Wicket stuff, wicket extensions.Moving to wicket 1.4.5 will it cause any problems with wicket-stuff and extensions?
tinymce texteditor size
I am using wicketstuff tinymce text editor , I want to control the width and height of texteditor based on the size of browser , please tell me how to do this ?
login with a parameter, no form
My application does not authenticate user ,some external application authenticates and redirects to my application passing a parameter to identify the user, using this parameter I have to create a session and userdetails. I am using SimplePageAuthrizationStrategy getSecuritySettings().setAuthorizationStrategy(new SimplePageAuthorizationStrategy(BasePage.class,getSignInPageClass()){ @Override protected boolean isAuthorized() { return ((AuditWebSession)Session.get()).isSignedIn(); //return true; } }); here my SignInPage public class SSIIntegrationLogin extends WebPage { private String sessionId; public SSIIntegrationLogin(PageParameters pageParameters) { sessionId=getRequestCycle().getRequest().getParameter(Parameters.PARAM_SSI_SESSION_ID); if (signIn(sessionId)){ onSignInSucceeded(); }else{ onSignInFailed(); } } protected void onSignInFailed() { setRedirect(true); setResponsePage(SingInFailedPage.class); } public boolean signIn(String sessionId) { return AuthenticatedWebSession.get().signIn(sessionId,); } protected void onSignInSucceeded() { // If login has been called because the user was not yet // logged in, than continue to the original destination, // otherwise to the Home page if (!continueToOriginalDestination()) { setRedirect(true); setResponsePage(getApplication().getSessionSettings().getPageFactory().newPage( getApplication().getHomePage(), (PageParameters)null)); } } } the problem is getting theparameter PARAM_SSI_SESSION_ID the external application will redirect to a link like http://hostname/myapp?PARAM_SSI_SESSION_ID=tert any request to my application will be first cheked by authorization and becasue the user is not signed in he will be redirected to SingInpage in my case SSIIntegrationLogin , here I need the parameter PARAM_SSI_SESSION_Id now I was expecting the above code to work but I never get the parameter PARAM_SSI_SESSION_Id , please tell me how can I get this parameter ? or is there any beter way to handle this ?
addfing additional html attributes to PropertyColumn
I use property Column for my AjaxFallbackDefaultDataTable. here the code new PropertyColumnFindAuditDTO(new ModelString(Audit Resolution),audit_review_code, stgAuditGeneral.auditResolution) this is a sortable column ,the second parameter is sort property , wicket creates a link for this column to sort .Can I add tittle attribute to this column , by overriding some method ?
add asc or desc icon indicator for sorting in ajaxFallbackDefaultDatatable
I use AjaxFallbackDefaultDatatable ,please tell me if I can add an icon for sortable column indicating asc or desc
nested property and CompoundPropertyModel
I am using CompoundPropertyModel as my form model , can I provide a nested property as id for a form component ?
making tinyMce TextArea readonly
I ma trying to make TextArea with TinyMce behaviour readonly , I added the following custom settings but it did not work tinyMCESettings.addCustomSetting(readonly : true); tinyMCESettings.addCustomSetting(mode : textareas); please suggest me how to make it readonly ?
page without class
can I create a page just with html and not write class ? I need some static html pages and writing java for those will be of no use .
tinymce ajaxbutton
My form has tinymce text area so I added TinyMceAjaxButton , now due to new requirements sometimes I have to hide tinymce textarea , anytime I hide tinymce text area the TinyMceAjaxButton submit button does not work , Is there a way I can use the TinyMceAjaxButton without tinynmce textarea ?
tinymce textarea hidden in form
My form has tinymce text area so I added TinyMceAjaxButton , now due to new requirements sometimes I have to hide tinymce textarea , anytime I hide tinymce text area the TinyMceAjaxButton submit button does not work , Is there a way I can use the TinyMceAjaxButton without tinynmce textarea ?
508 accessibility support
Will wicket ever provide support for 508 accessibility in current or any of the future releases ? here is 508 accessibility (http://www.section508.gov/)
input filed mask
Is there any textfield to format number to currency , I need a currency text field is there any available ?
file download using ajaxLink
I do download in traditional way here is the code public void download(String filename, byte[] filedata){ setRedirect(false); WebResponse response = (WebResponse) getResponse(); response.setAttachmentHeader(filename); response.setLastModifiedTime(Time.now()); response.setContentType(application/octet-stream); response.write( new ByteArrayInputStream(filedata)); response.close(); } item.add(new LinkVoid(download){ { add(new Label(filename, eaAuditProgramAttachment.getFileName())); } @Override public void onClick() { ((BasePage)getPage()).download(eaAuditProgramAttachment.getFileName(), eaAuditProgramAttachment.getEaBlob().getBlobData()); } }); If I replace this link with AjaxLink it will not work and I must use an ajaxlinkplease tell me how can I use ajaxLink for download
uploaded files in page instance
I have some huge files upto 50Mb in side my page instance , I have to save them in page instance and I cannot reload it everytime from database becasue other users might delete the file . I am getting java.lang.OutOfMemoryError , only way I can resolve this is increasing heap size but Is this a bad idea storing files upto 50Mb inside page instance ?
hide pagination
I am using dataview which comes with pagination , if the total records are less than records per page is there away I can hide pagination bar ?
download file inside panel caching tab
My page have several tabls all of them are panel cahcing tab it worked fine loading only once , I added a new pancel caching tab which has a download link , here clicking on the link i should create a response stream with byte array and here is the code setRedirect(false); WebResponse response = (WebResponse) getResponse(); response.setAttachmentHeader(filename); response.setLastModifiedTime(Time.now()); response.setContentType(application/octet-stream); response.write( new ByteArrayInputStream(filedata)); response.close(); immediately after this code is executed the tab reloads the content , the tab has a listview and its populateItems method is calledis therey any way i can avoid this ?
parameters encryption
Is there any setting in Application or any base class through which parameters can be encrypted and decrypted behind the scenes , so that I wont do this for every page ?
508 ajaxdefaultdatatablepanel
I am using lot of ajaxdefaultdatatable and our application should be 508 , is there a way to create the sortable columns from this panel 508 ? here the code I use to create a columns new PropertyColumnWFStgAuditEntity(new ModelString(Audit Number),stgAuditGeneral.auditNumber, stgAuditGeneral.auditNumber); in this PropertyColumn or any method inside I can override to add 508 description ?
prevent browser from cahing my pages
I want to add nocache header to my pages , code from WebPage response.setHeader(Pragma, no-cache); response.setHeader(Cache-Control, no-cache, max-age=0, must-revalidate); // no-store and I also added response.setHeader(Cache-Control,no-cache); response.setDateHeader (Expires, -1); by overriding @Override protected void setHeaders(WebResponse response) { super.setHeaders(response); response.setHeader(Cache-Control,no-cache); response.setDateHeader (Expires, -1); } but the browser is still caching the pages , I hit the back button or forward button the page is not refreshed , please tell me how to prevent browser from chaching my pages.
back button using HistoryAjaxBehavior
I want to disable back and forward button for which I followed HistoryAjaxBehavior example final AjaxLinkVoid linkTwo = new AjaxLinkVoid(linkTwo) { private static final long serialVersionUID = 1L; @Override public void onClick(final AjaxRequestTarget target) { info(Link two has been clicked); target.addChildren(getPage(), FeedbackPanel.class); historyAjaxBehavior.registerAjaxEvent(target, this); } }; here one component is registered to historyAjaxBehavior , on click of back button, onAjaxHistoryEvent from HistoryAjaxBehavior gets called , but my case I donot have any link component , I have a page with a datatable and when user navigates away from this page and clicks back button to return to this page, in this case because I did not register any component, so the method onAjaxHistoryEvent will not be called so please tell me how to have historyAjaxBehavior to a page ?
ajax indicator for all ajax requests blocking page
I am looking for some indicator for any ajax requests , I dont want to add the behaviour for every component with ajax behaviour , I want something which detects for ajax request and starts the indicator blocking the page for further user actions and vanishess after response is rendered is there any?
AjaxFallbackDefaultDataTable, navigation toolbar disappears
I am using AjaxFallbackDefaultDataTable ,My page has a search form and AjaxFallbackDefaultDataTable , so whenever search from is submitted I am adding the panel which contains AjaxFallbackDefaultDataTable to AjaxTarget , Initially when page loads I get the navigation toolbar everything is fine, user uses the search ,supppose this search did not return any results, I dont see the navigation toolbar that is fine , now when uses searches again this time the result count is 1000 , so I should see the navigation toolbar ,but it does not appear , I feel once the AjaxFallbackDefaultDataTable removes the navigation toolbar it does not reappear please tell what might be going wrong , and how to debug this issue?
disable back button
I want to disable back and forward button , Is there a way to do this using wicket ? I donot want user to submit the same page twice so if user clicks on back button i would like to take him to home page, can I do this ? and can I tell wicket to add no cahce headers to all my pages using Application class ?
using hibernate pojo as model instead of dto
I am wondering If it is write to use hibernate pojo entities as model objects for wicket components , or should I create a DTO and use them as model objects , Is there any disadvantages of using entities POJO's as model ?
redirect parent page on submit modal window
I have a page called Review Page with a form with a submit button Return.When user clicks on return I want user to enter comments for return ,for which I want to use a modalwindow when user enters comments and submit the form in modal window , I want to close the modal window and redirect the Review page to some other page , pelase tell me how can I do this?
detachable model in a listview
Please help me use detachablemodel inside a list view here is my code private class DocumentsPanel extends Panel { public DocumentsPanel( final ListAuditProgramDocument documents ,final String name) { super(documentsPanel); ListIModelAuditProgramDocument models= new ArrayListIModelAuditProgramDocument(); for(final AuditProgramDocument auditProgramDocument :documents){ models.add(new LoadableDetachableModelAuditProgramDocument(auditProgramDocument){ Long sysDocumentId; { sysDocumentId=auditProgramDocument.getSysDocumentId(); } @Override protected AuditProgramDocument load() { return auditProgramDocumentService.getById(sysDocumentId); } }); } add(new ListViewIModelAuditProgramDocument(documentsList,models){ @Override protected void populateItem(ListItemIModelAuditProgramDocument item) { AuditProgramDocument auditProgramDocument=item.getModelObject().getObject(); item.add(new LinkVoid(view){ @Override public void onClick() { System.out.println(getParent().getDefaultModelObject()); *AuditProgramDocument auditProgramDocument= (AuditProgramDocument)getParent().getDefaultModelObject();* download(name+.pdf, auditProgramDocument.getDocumentBytes()); } }); } }); } } the highlited line I get class cast exception, Please tell me what is wrong
strange icon appears in webpage
My pages I see a strange symbol donot know the cause of this , the symbol in IE and firefox is differnt . Please help me tell what is causing this.Will attach the images in reply to this post.
currency symbol in windows and unix different for a label model
I have a Label new Label(recommendedAmt,NumberFormat.getCurrencyInstance().format(stgFinding.getFindingAmt()==null ? new BigDecimal(0): stgFinding.getFindingAmt())); this works fine but when deployed in windows I get the label as $0.00 and when deployed in unix i Get this as ¤0.00 and I also get strange symbols Send Notification�� please help me resolve this. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
use a lable in several palces in a page
I created a label and I wabnt to use this label in seeral places in page , is it allowed , right now I getting exception [Component id = documentType] has the same wicket:id as another component already added at the same level so If want to show the same text at 5 different places in markup do I have to create 5 label objects with the same model ? - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
reload a radiogroup
I have a container , a form , a radiogroup , and refreshing view, this refreshing view has a delete ajaxlink and a radio buton ,in onClick method of delete link I delete the record and add the container to AjaxRequesTarget, the refreshing view get updated , but the radio group is not , what method should I override to update the radioGroup ? - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
problem with pagination when hibernate result transformer is applied
I am using hibernate criteria query to get data for my AjaxFallbackDefaultDataTable, this datatable also gives me pagination parameters which I am apply to criteria. .The entity I am using for the criteria query has a lazy load collection ,and I need the size of the collection in the view , so If I donot eager fetch collection I end up with n+1 selects .So to eager fetch collection and not to have duplicater records I added result transformer Criteria.DISTINCT_ROOT_ENTITY anmd fetchmode join . Now the problem is with pagination , for example I have item and bids and the criteria query to fetch items with eager fetch for bids , suppose query selects one item and this item has 2 bids the query returns total 3 records and total record count will be 3 and now when I apply result transformer three records will reduce to one record , but pagination information will be wrong , please help me how to resolve this ?
using ajaxbutton for for submit
Is there any disadvantage using ajaxButton for navigation to new page ?I not adding anything to target and just call sertResponsePage() , is there any disadvantage using jaxbutton in this cas e?
how to notify session time out to disabled user
our application must support 508 Accessibility, I need suggestion on how to implement automatic session timeout.If i user is idle for 30 minutes then session times out and how can I let a disabled user know about this ? - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
virues scanning for file upload
we need to implement virues scanning functionality for uploded files and reject in case of virues.Please suggest what choices i have and are there any example ?
validation for select
I have a dropdown choice with values from enum . In form validation if the selected value from list is monetarty , then amount field also needs value , now my problem is how would I get the selected value in the validator object code add(new DropDownChoiceFindingTypeEnum(findingType,Arrays.asList(FindingTypeEnum.values(; //validator if(FindingTypeEnum.Monetry.equals(getFormComponent(findingType).getValue())){ if(StringUtils.isBlank(getFormComponent(findingAmt).getValue())){ addErrorMessage(Finding Amount is required for finding type monetary); } } /code here in the code getFormComponent(findingType).getValue() return index of selected value but not the selected object , please tell me If I can retrieve the selected object from dropdownchoice ?
conditional redirect page
I want to use redirect page to redirect , In my case depending on a condition I should redirect to different pages , if condition is true then opage1 if false page 2 can I implement this using redirect page ? If not whats the other alternative ?
how to avoid multiple session for the same username
I need suggestions on implementing single user login , like My system has a user with a usernamejdavid and my application should not allow two different sessions for the same username jdavid , can one session peep into all other session to see if the any has a usernaem jdavid, I am basically looking for some pattern if any available for restricting multiple session for the same username .
spring dojo or wicket for 508 application
My application must be 508 , we are using wicket , recentlyheard spring dojo , or spring dwr provides rich UI and ajax support and its 90% 508 complaint is that true ? Please suggest us If we should go with spring dojo or wicket ?
controlling components from sub classes
I looking for some best practices or better way to control my page components , like set enable add attribute modifiers etc. for example I have add and edit page , where one textField should be enabled in add and disabled in edit so for this I did add(new TextFieldString(findingNumber).setEnabled(enableFindingNumber())); protected boolean enableFindingNumber(){ return false; } the subclass Add page will override this method to true .but this will not be generic tomarrow If I need some attribute modifiersfor addpage and not for edit again I will do the same add a protected method call that in textfield and override in addpage , this approach will make me change the base class for everytime for any new features the sub class needs .I am looking for some way through whcih I can retrieve the component in the sub class and add decoratos without changing the base class ?
file upload
I am using wicket file upload , In our application users want to upload big files with the size of 50 MB+, Do I need any additional support of or wicket file upload allows this ?
hibernate lazy loading byte code instrumentation and wicket serialization
I am thinking of using byte code instrumentation for lazy loading of properties , I use hibernate entities as model for most of my pages and wonderingbyte code instrumentation will cause any issues for serialization ?
how to reset a form
My application is using hibernate and wicket , I am trying to reset my form , My form model is hibernate entity and its LoadableDetachableModel . In order to reset my form I added ajax button , hoping to call form.clearInput () in the onSubmit , but realized that before the onSubmit , form updates model and becasue I am using hibernate open view session filter, my entity is persisted automatically , so instead of resetting I am persisting the form model , please help me how can I rest my form ?
ajax form rest
how to reset form using ajax and non ajax ?
dynamically add additional components
is it possible to modify html at runtime and add new components ? for example I have a panel, html code below. wicket:panel div class=contentTittle label wicket:id=pageTittle / /div div class=pageheader div align=center table style=margin-bottom: 0.5em; tbody tr tdAudit Number:/tdgo tdlabel wicket:id=auditNumber//td /tr tr tdGrantee:/td tdlabel wicket:id=grantee//td /tr /tbody /table /div /div div class=pagedescription pspan wicket:id=pageDescription //p /div /wicket:panel I use this panel in several pages, but for one page I have to add additional informationbetween wicket:id=grantee and wicket:id=pageDescription , so I am wondering If I can I create a new class which extends from this panel and if this new class can add a new component to this html and add the component to hirearchy , something like this ,html below has a third tr tag ? wicket:panel div class=contentTittle label wicket:id=pageTittle / /div div class=pageheader div align=center table style=margin-bottom: 0.5em; tbody tr tdAudit Number:/tdgo tdlabel wicket:id=auditNumber//td /tr tr tdGrantee:/td tdlabel wicket:id=grantee//td /tr tr tdProgram:/td tdlabel wicket:id=program//td /tr /tbody /table /div /div div class=pagedescription pspan wicket:id=pageDescription //p /div /wicket:panel please suggest me if it is possible to do this , I donot want to add the third tr tag and call set visible false for all pages and only for one page set it to true ?
date format with datepicker
I have a date field add(new org.apache.wicket.extensions.markup.html.form.DateTextField(auditEndDate).add(new org.apache.wicket.extensions.yui.calendar.DatePicker())); this date picker puts the selected date in the format 1/1/01 can I configure this to format date as 1/1/2001 ? When user selectes a date the date which appears in datetextfiled should be of format 1/1/2001 , please tell me how can i do this ?
radio inside a list
I have a radio group this group has a form and this form has a list view and this list view has list items and each list item has a radio and I want to add ajax behaviour to this radio button for onclick, so when user clicks on any radio button , inside the method onSubmit(AjaxRequestTqarget ) I want to retrieve the model of the list itemwhich is the parent of radio button to update and save . Its only one radio button selection i want to save and form does not have any more form components . My RadioGraoup has no model , my form also got no model and List view has a collection of pojo and each list item model is this pojo even my radio has no model , please tell me how can I retrieve the pojo ?
i am using weblogic 10.3
I read in previous post that if it is weblogic then its better to use wicket filter rather than wicket servlet and more over I am using open view session filter and as this filter order is important , please suggst me if I should go with wicket-servlet or wicket filter , I know wicket-servlet internally calls wicket filter but in terms several other filters where order of filter is importanrt is it better to use wicket-servlet or wicket filter ?
error because of log4j from org.apache.wicket.Application
bean wicketApplication' is my web-application's org.apache.wicket.Application this is the error message I get starting my application org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'wicketApplication' defined in class path resource [applicationContext-web.xml]: Instantiation of bean failed; nested exception is java.lang.NoSuchFieldError: name root cause Caused by: java.lang.NoSuchFieldError: name at org.slf4j.impl.Log4jLoggerAdapter.init(Log4jLoggerAdapter.java:75) at org.slf4j.impl.Log4jLoggerFactory.getLogger(Log4jLoggerFactory.java:75) at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:103) at org.apache.wicket.Application.clinit(Application.java:143) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) at java.lang.reflect.Constructor.newInstance(Constructor.java:513) at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:100) at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:61) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:877) please suggest what am I missing , My project is built by maven and this is a project with sub-projects jar,war, and ear and its uses spring , hibernate , and wicket 1.4, I specified the dependency for org.slf4j dependency groupIdorg.slf4j/groupId artifactIdslf4j-log4j12/artifactId version1.5.5/version /dependency please suggest what version should I use ?
anchor links
I created a simple linkfor java script to open a client side popup window and not forserver processing. here is the code div class=model_test p a href=# class=model_anchorView/a /p /div when i see generated html source the codeit is the same no difference but when I put my mouse on the anchor the browser status bar shows a different url http://localhost:8080/audit/app/inbox.1?wicket:bookmarkablePage=:com.xyz.pages.stg.audit.AfmsReviewNewAssignmentPagePARAM_PROCESS_INSTANCE_ID=1232# because of this my java script function is not responding , Please tell me how can I have anchor tag untouched by wicket ?
html text as model
I have text area with tinynmce behaviour, so any text saved from this textarea will contain html tags to retain format of the text.Now in other pages I want to display this text as read-only , for which i get the string comment text from database and set it to as model to my label , the problem is the comment text its getting displayed as it is showing html tags and browser is not parsing them , for example add(new Label(comments,new ModelString(pTinyMCE is a platform independent web /p)); once the page is rendered I am expecting to see this as *TinyMCE is a platform independent web* and not *pTinyMCE is a platform independent web /p , * please tell me how to resolve this.
making tinymce textarea read only
I am trying to make teaxarea with a tinymce behavior readonly below is the code for that , but this is not working , please help me make this readonly. tinyMCESettings.addCustomSetting(readonly : true);
tinymce textarea
I am trying to make my text editor (text area ) to rich text eitors using timymce.First I tried wicket timymce behaviour , the problem is the tinymce java scriopt is repalce my textarea html with an iframe this is my html , but the style=display: none; is added by tinymce textarea maxlength=4000 cols=120 rows=8 name=reassignmentComments wicket:id=reassignmentComments id=reassignmentComments style=display: none;/ and code generated by tinymce is lot, but the problem is it uses iframe and because of which the textarea value is not posted to my form , please help me integrating tinymce - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
updating PanelCachingTab
Is it possible to update a panel which is inside org.apache.wicket.extensions.markup.html.tabs.PanelCachingTab , I tried to add the panel to AjaxREquestTraget , it did not work , please suggest me if it is possible to refresh a PanelCachingTab - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
AjaxPagingNavigator and 508
My application should be 508 and was wondering if using AjaxPagingNavigator and AjaxFallbackDefaultDataTable will they cause issue with 508 , because the pagining navigator provides links to pages and can I set the tittle attribute to the anchor created by navigator ? and the sortable column in AjaxFallbackDefaultDataTable - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
open view session filter position in web.xml
I am using open view session filter , i was assuming that a session gets created whenever a request is made and closed when response is rendered , to check that i added log statements to see when session gets created and closed, but surprisinging its gets called several times , i have this filter after wicket servlet in web.xml, what should be order of this in web.xml - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
image path for my java script
I need image path in my java script , I want collapsable behavior for my component , to which i add either plus or minus , when user click on the imaghe my java script get the image with component and checks the src to find if it is plus or minus , and finally changes the image to the oppsite here is my java script [code] $(document).ready(function(){ $(p.collapsible_text).click( function () { var $img= $(this).children(img); var $div= $(this).next(div); var $label=$(this).children(label); var imgSrc=$img.attr(src); if($img.attr(src) == resources/gov.hhs.acf.web.pages.common.collapsable.AbstractCollapsablePanel/plus.png){ $div.slideDown(fast); $label.html(Close); $img.attr(src,resources/gov.hhs.acf.web.pages.common.collapsable.AbstractCollapsablePanel/minus.png); return; } if($img.attr(src) == resources/gov.hhs.acf.web.pages.common.collapsable.AbstractCollapsablePanel/minus.png){ $div.slideUp(fast); $label.html(Open); $img.attr(src,resources/gov.hhs.acf.web.pages.common.collapsable.AbstractCollapsablePanel/plus.png) } } ); }); [code] now the problem is I hardcoded the image path in java script but the image path changes becasue this sciprt gets added by my collapsable panel and any page from any directory might use this panel so the image path is different to different pages so need suggestions on how to hard code image path in this java script - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org