Hi!
You just change internal state of delete button to invisible. But it seems
that you forgot to refresh the entire form or just _delete_button component
with AjaxRequestTarget (every components that should be refreshed by AJAX
must have markup ID and should be added to AjaxRequestTarget
Hi!
You may look at Apache Wiki, for example,
https://cwiki.apache.org/WICKET/render-strategies.html.
PRG (post- redirect - get) - the default request processing strategy in
the Wicket.
--
View this message in context:
Hi Sebastian,
I think that service layer have to be responsible only for CRUD operations,
but L(list) operations should be built upon JPA-specific _READ-ONLY_ queries
or some kind of DSL (for example, querydsl
http://source.mysema.com/display/querydsl/Querydsl). The last one point
allows to
Brain thank you for comment,
saying about Wicket and transactions, from my point of view, we have 2
posibilities:
1. manage transaction boundaries on per-request way (override
RequestCycle.onBeginRequest(), RequestCycle.onEndRequest(),
RequestCycle.onRuntimeException()) with
Sebastian wrote:
Alexander,
If I understand you correctly, you are saying: view-only operations (e.g.
listings, search forms) can access the DAOs directly, and all operations
that modify data should be routed through the service layer?
Yep (in general).
Sebastian wrote:
How do
Check this:
if (isChecked) {
System.out.println(is checked);
component = new Label(component, is checked);
/* output markup ID */
component.setOutputMarkupId(true);
}
Yep, just put it to home (base) page.
--
View this message in context:
http://apache-wicket.1842946.n4.nabble.com/Close-modal-window-on-session-timeout-tp2534936p2535578.html
Sent from the Wicket - User mailing list archive at Nabble.com.
Hi!
Check this jQ plugin http://docs.jquery.com/Plugins/livequery
--
View this message in context:
http://apache-wicket.1842946.n4.nabble.com/Header-requiring-to-be-contributed-through-page-load-and-not-ajax-tp2533526p2535816.html
Sent from the Wicket - User mailing list archive at
Hi!
Have you looked at IResponseFilter ?
--
View this message in context:
http://apache-wicket.1842946.n4.nabble.com/render-google-analytics-at-end-of-head-tp2536175p2536213.html
Sent from the Wicket - User mailing list archive at Nabble.com.
I think this is not hack, but raw post-processing :) Strict processing can
be done with XsltTransformerBehavior or as Martin said, you can use JS.
--
View this message in context:
http://apache-wicket.1842946.n4.nabble.com/render-google-analytics-at-end-of-head-tp2536175p2536224.html
Sent from
What about feedback markup ID ? Is it present on the page ?
It seems that you forgot to invoke setOutputMarkupPlaceholderTag(true) on
FeedbackPanel instance.
--
View this message in context:
saveLink = new AjaxSubmitLink(save, mainform) {
@Override
protected void onSubmit(AjaxRequestTarget target, Form? form)
{
/* do not forget to refresh feedback panel on successful
submit */
info(Request processed successfully!);
Hi!
I think you can use interface IUnauthorizedComponentInstantiationListener
and push necessary information message to Session object. On SignInPage -
check the session and render the message.
--
View this message in context:
Hi,
I have similar question sometime ago and found only PAX Wicket
Integration...
Concerning to springframework - I guess that 3.0.x is OSGI-ready.
--
View this message in context:
http://apache-wicket.1842946.n4.nabble.com/Wicket-and-Apache-Felix-tp2549800p2549822.html
Sent from the Users
Hi,
have you check wicket-velocity project ? Also look at IResourceStreamLocator
and IMarkupResourceStreamProvider interfaces.
Hopes it help :)
--
View this message in context:
http://apache-wicket.1842946.n4.nabble.com/dynamic-template-page-tp2550354p2550385.html
Sent from the Users forum
Alexandru Artimon wrote:
The thing is that I'm coding my own tag wicket:translate and I use a
class that implements IComponentResolver in order to resolve it.
Now the problem is that when I click on the AjaxEditableLabel (that took
place of my tag) it makes an Ajax request in order to
Check out the artifactory code (http://www.jfrog.org/index.php) and check
TemplateBehavior class.
--
View this message in context:
http://apache-wicket.1842946.n4.nabble.com/Making-a-DecoratedButton-Need-to-pre-fix-post-fix-div-tag-around-the-button-component-tp2552950p2553242.html
Sent from
AjaxEditableLabel must be attached to some well-defined HTML tag
(placeholder) in your markup, for example,
here is my default translation
How you render this placeholder for you translate tag ?
--
View this message in context:
So IComponentResolver cannot modify component hierarchy. Right ? And there is
no way for the author to create and handle special tag lt;translategt;.
--
View this message in context:
http://apache-wicket.1842946.n4.nabble.com/Saving-a-component-in-session-tp2551649p2714088.html
Sent from the
Hi
You need to add modal window placeholder tag on the page and call, attach
ModalWindow instance to it and call modalWindowInstance.show(target) within
onSubmit(AjaxRequestTarget target) method on the submit button.
--
View this message in context:
check this:
modalWindow.setContent(new SearchResults(modalWindow .getContentId(),
modalWindow, resultModel));
/* FIXME use ModalWindow.show(target) instead
target.addComponent(modalWindow, modal);
*/
logger.info(hey hey);
modalWindow.show(target);
--
View this message in
Hi!
Did you try to override isEnabled method on the button ?
--
View this message in context:
http://apache-wicket.1842946.n4.nabble.com/setEnabled-true-doesn-t-enable-a-subcomponent-tp2715172p2715313.html
Sent from the Users forum mailing list archive at Nabble.com.
Hi,
the integration projects, you mention above, seems inactive for a long time.
Is it critical for your project to use exactly the Ext-JS javascript
framework ? Have you looked at WiQuery project (jQuery integration) ?
--
View this message in context:
Hi,
ParentPage.html:
div wicket:id=wrapper
wicket:child/
/div
I know how it can be achieved in Wicket 1.4 (WebMarkupContainer with
overrided isTransparentResolver), but I cannot get the same behavior in case
of Wicket 1.5.
Wicket gurus, I need your advice :)
Thanks
--
View this message in
Gabriel, thank you for reply,
Gabriel Bucher wrote:
Have you tried to use the TransparentWebMarkupContainer? based on the
migration guide this could be a potential solution.
Yep, I tried to use Transparent WebMarkupContainer and BoxBorder and got the
same issue as described in
Hi ppl,
can anybody explain me why RequestCycle.getResponsePage() not handle
PageReferenceRequestTarget ? Is it by design or is it bug ?
public final Page getResponsePage()
{
IRequestTarget target = getRequestTarget();
if (target instanceof
Hi,
I the method onUpdate(AjaxRequestTarget target) you shoud reference to
existing component:
@Override
protected void onUpdate(AjaxRequestTarget target) {
target.addComponent(tableWrapper);
}
Hi,
If I understand you correctly, you need to add ordering direction images it
a table header. This can be done with CSS for instance:
.wicket_orderUp,
.wicket_orderDown,
.wicket_orderNone {
text-decoration: underline;
padding-right: 15px;
Upgrade Wicket up to 1.4.12 - should help :)
--
View this message in context:
http://apache-wicket.1842946.n4.nabble.com/AjaxLazyLoadPanel-IE-and-chrome-tp3006112p3006579.html
Sent from the Users forum mailing list archive at Nabble.com.
Arjun Dhar wrote:
Hi,
I've solved this problem by writing a new implementation of DataViewBase.
GridView did not seem appropriate to simply extend due to a few reasons.
(It assumes Symmetry for the most in its code).
This Code can merge areas within the GRID and extract data from the
Check wicketstuff's jquery project for HistoryAjaxBehavior. May be it helps.
drf wrote:
I have encountered the following serious issue:
My application consists of one WebPage which has an AjaxTabbedPanel. Each
tab has an associated panel which includes several menu items (links)
which
Check this thread for securedform
http://apache-wicket.1842946.n4.nabble.com/SSL-Links-and-buttons-td3001634.html
--
View this message in context:
http://apache-wicket.1842946.n4.nabble.com/Cross-page-login-panel-tp3008005p3008222.html
Sent from the Users forum mailing list archive at
Check the Wiki
https://cwiki.apache.org/WICKET/products-based-on-wicket.html
https://cwiki.apache.org/WICKET/websites-based-on-wicket.html
--
View this message in context:
http://apache-wicket.1842946.n4.nabble.com/Real-world-Wicket-Reference-projects-tp3010502p3010614.html
Sent from the
As far as I know, you can only combine wicket and JSP/JSF components by
means of HTML frames - but it will be independent pages i.e. they can't
transparently intercommunicate between each other (wicket - JSF).
--
View this message in context:
Check this thread
http://apache-wicket.1842946.n4.nabble.com/Preventing-double-click-of-AjaxButtons-in-ModalWindow-td2289480.html
--
View this message in context:
http://apache-wicket.1842946.n4.nabble.com/Disable-button-double-click-without-breaking-Form-setDefaultButton-tp3018140p3018370.html
You can set content for modal within onClick method.
--
View this message in context:
http://apache-wicket.1842946.n4.nabble.com/On-demand-component-initialization-tp3020334p3020343.html
Sent from the Users forum mailing list archive at Nabble.com.
I have the similar issue with Form (with CompountPropertyModel attached) and
several text fields which generated on-the-fly by RepeatingView with no
model specified (only field ID). I didn't investigate the issue deeply yet,
but thinks the problem within model inheritance that breaks by presence
Hi,
could any wicket gurus explain in more details about ajax updates and
AbstractRepeater's limitation to child ids ? I found in mentioned in the
subject issue, but still did not get the limitation. Is this limitation
actual for wicket 1.4.x and wicket-1.5 ?
In my project I use repeating view
class StyledButton extends Button {
public StyledButton(...) {
super();
add(new SimpleAttributeModifier(class, positive));
}
@Override
protected void onComponentTagBody(MarkupStream markupStream, ComponentTag
openTag) {
replaceComponentTagBody(markupStream, openTag, );
}
}
--
try {
...
} catch (RuntimeException e) {
error(e);
}
In FeedbackPanel you can preprocess any message.
--
View this message in context:
http://apache-wicket.1842946.n4.nabble.com/Register-feedback-messages-tp3076561p3076662.html
Sent from the Users forum mailing list archive at Nabble.com.
refreshRateTextField.setType(Integer.class) should help
PS
Model class (refreshRateModel instance) does not provide type info.
Check IObjectClassAwareModel.
--
View this message in context:
http://apache-wicket.1842946.n4.nabble.com/1-5-integer-textfield-tp3087246p3087489.html
Sent from the
1. create patch and send it to JIRA :)
2. apply transformer behavior to a table component
--
View this message in context:
http://apache-wicket.1842946.n4.nabble.com/Invalid-html-rendered-with-DataTable-ex-empty-tfoot-element-tp3058934p3087508.html
Sent from the Users forum mailing list
You cant add IValidator to a ListView because it is not a FormComponent. You
can:
1. check ListView.getList() within Form.onSubmit() and call form.error(...)
if list is empty
2. create a form validator based on AbstractFormValidator and add it to the
form component
--
View this message in
@Override
protected void onInitialize() {
super.onInitialize();
Form.findForm(this).add(new AbstractFormValidator() {
private static final long serialVersionUID = 1L;
@Override
public void validate(Form? form) {
if (/* ... */) {
checkout artifactory sources and check AjaxIndicator implementation.
http://www.jfrog.org/community.php
--
View this message in context:
http://apache-wicket.1842946.n4.nabble.com/Wicket-Ajax-registerPreCallHandler-tp3091091p3091105.html
Sent from the Users forum mailing list archive at
Suggest another approach:
class MasterTableT extends DefaultDataTableT {
public MasterTable(...) {
setItemReuseStrategy(new MasterTableReuseStrategy(this));
}
protected ItemT newDetailsRow(...) {
/* create row here */
}
protected void populateDetailsRow(...) {
/* populate details
Component.remove(IBehaviour) ?
--
View this message in context:
http://apache-wicket.1842946.n4.nabble.com/remove-onclick-eventbehaviour-after-first-click-tp3164011p3164105.html
Sent from the Users forum mailing list archive at Nabble.com.
try lstUsers.setReuseItems(true) (see ListView javadoc)
--
View this message in context:
http://apache-wicket.1842946.n4.nabble.com/Using-CheckGroup-with-a-listview-tp3175047p3175610.html
Sent from the Users forum mailing list archive at Nabble.com.
You should replace you table component with another column list and when
export to excel. I do not know other way to hide some columns.
--
View this message in context:
http://apache-wicket.1842946.n4.nabble.com/AjaxFallbackDefaultDataTable-tp3213858p3214022.html
Sent from the Users forum
1. Replace @Autowired with @SpringBean (do not forget to configure spring
instanciation listener in WebApplication)
2. Call InjectorHolder.getInstance().inject(this) from SortableDataProvider
ctor.
--
View this message in context:
I'm not sure, but you can try Page.setStatelessHint(true)
--
View this message in context:
http://apache-wicket.1842946.n4.nabble.com/Skip-session-creation-when-AjaxLink-is-disabled-tp3219342p3220064.html
Sent from the Users forum mailing list archive at Nabble.com.
Hi,
I have faced with another problem, related to nested forms and
FileUploadField (wicket-1.4.15).
The nested form have FileUploadField instance and defined setMaxSize(100K).
In case of submitting thru Ajax file more than 100K, hasError() on the
nested form return false. But I expect here
Hi,
I have the question about correctness of Component#setDefaultModel
(Component#setModelImpl) method behavior. I expect that the flag
FLAG_INHERITABLE_MODEL should be checked there and turned off if the
provided model is not a IComponentInheritedModel.
Let check the next code:
public
Done
https://issues.apache.org/jira/browse/WICKET-3413
--
View this message in context:
http://apache-wicket.1842946.n4.nabble.com/1-4-15-FLAG-INHERITABLE-MODEL-and-default-model-change-tp3252093p3254349.html
Sent from the Users forum mailing list archive at Nabble.com.
Igor, I have one more question about IWrapModel :
why the Component#defaultModelComparator doesn't check and unwrap IWrapModel
before calling the IModel#getObject() ?
private static final IModelComparator defaultModelComparator = new
IModelComparator()
{
private
What about passing page _references_ to other pages ? Are there any reefs
here ?
Thanks
Igor Vaynberg-2 wrote:
starting with 1.4 we have advocated that passing page instances to
other pages is a bad idea, whether directly or via anonymous classes.
-igor
On Fri, Feb 11, 2011 at 5:21
WicketApplication:
public static final String FOOTER_FILTER_NAME = footerBucket;
@Override
protected void init() {
super.init();
...
setHeaderResponseDecorator(new IHeaderResponseDecorator() {
@Override
public IHeaderResponse decorate(IHeaderResponse response) {
Try this
textField.add(new AbstractBehavior() {
public void onRendered(Component component) {
component.getResponse().write(text after text input);
}
});
--
View this message in context:
http://apache-wicket.1842946.n4.nabble.com/Text-after-input-field-tp3317381p3317612.html
Sent from
; Kind regards,
gt; Stijn
gt;
gt;
gt; On 17 January 2011 17:59, Alexander Morozov
gt; lt;alexander.v.moro...@gmail.comgt;wrote:
gt;
gt; gt;
gt; gt; Hi,
gt; gt;
gt; gt; I have faced with another problem, related to nested forms and
gt; gt; FileUploadField (wicket-1.4.15).
gt; gt
Got the same issue. Please, file jira.
-
--
http://www.linkedin.com/in/amorozov
--
View this message in context:
http://apache-wicket.1842946.n4.nabble.com/WICKET-2056-broke-DatePicker-in-ModalWindow-in-1-4-16-tp3416225p3416830.html
Sent from the Users forum mailing list archive at
Hi,
you could use something like http://bindgen.org/ to access to properties in
a bean without reflection (http://code.google.com/p/bindgen-wicket/).
-
--
http://www.linkedin.com/in/amorozov
--
View this message in context:
Pedro,
should we notify multipleChoiceModel that model is changed ?
checkBoxMultipleChoiceComponent.setDefaultModel( multipleChoiceModel );
multipleChoiceModel.getObject().add( X );
multipleChoiceModel.modelChanged();
Pedro Santos wrote:
add X in the CheckBoxMultipleChoice model collection.
1. use AjaxLink
AjaxLink redirectLink = new AjaxLink(...) {
public void onClick(AjaxRequestTarget target) {
ModalWindow.closeCurrent(target);
target.appendJavascript(window.location=' + urlFor(AnotherPage.class)
+ ');
}
};
2. or embed javascipt to base page:
-
--
Hi,
could you try to use custom IConverter ?
public class MyAutocompleteTextField extends AutoCompleteTextField {
public MyAutocompleteTextField(...) {
super(...);
setType(MyModel.class);
}
protected Iterator getChoices(String input) { ... }
public IConverter?
Zeldor wrote:
But what are benefits of small session really? With entire user in session
I can skip getting data from db and serve data faster...
In clustered env small session get replicated much faster. I think that
wicket's session shouldn't be used for storing any business data. Any
You have JDBC Connection reference within Index page implementation. Check
LoadableDetachableModel and never store Connection and other JDBC stuff
within wicket components.
-
--
http://www.linkedin.com/in/amorozov
--
View this message in context:
Yep, use Session.get() method.
-
--
http://www.linkedin.com/in/amorozov
--
View this message in context:
http://apache-wicket.1842946.n4.nabble.com/getSession-in-LDM-tp3654618p3654647.html
Sent from the Users forum mailing list archive at Nabble.com.
I think you should use *AjaxFormChoiceComponentUpdatingBehavior*
-
--
http://www.linkedin.com/in/amorozov
--
View this message in context:
http://apache-wicket.1842946.n4.nabble.com/Palette-select-the-data-with-one-click-tp3839870p3841356.html
Sent from the Users forum mailing list archive
Just an idea :)
private final IModel yesNoState = new Model();
final TextField textField = new TextField(text, ...);
textField.setOutputMarkupId(true);
...
add(new AbstractBehavior() {
@Override
public void configure(Component component) {
Check quickstart app
http://apache-wicket.1842946.n4.nabble.com/file/n4096248/myproject.zip
myproject.zip Hope it helps :)
-
--
http://www.linkedin.com/in/amorozov
--
View this message in context:
http://apache-wicket.1842946.n4.nabble.com/Radio-button-selection-tp4085827p4096248.html
Great news! Thanks. I'll wait for 6.1.0 :)
-
--
http://www.linkedin.com/in/amorozov
--
View this message in context:
http://apache-wicket.1842946.n4.nabble.com/announce-Wicket-CDI-for-Wicket-6-0-0-released-tp4651924p4651935.html
Sent from the Users forum mailing list archive at Nabble.com.
Also take a look at tag
https://cwiki.apache.org/WICKET/wickets-xhtml-tags.html .
Oscar Besga Arcauz wrote
Hi wickersI am using a lot of panels in my wicket webapp, with the
usual add(new MyPanel(myPanel));
But I was thinking if there is a wicket tag that can avoid using the extra
Check out this open-source project
http://www.jfrog.com/home/v_artifactory_opensource_source and look at
security.xml file. It is good example how to integrate wicket and spring
security.
-
--
http://www.linkedin.com/in/amorozov
--
View this message in context:
Hi!We have almost successfully use FencedFeedbackPanel feedback, until we
enable ErrorLevelFeedbackMessageFilter in nested FencedFeedbackPanels.Here
is page structure:*The issue:* catch-all FencedFeedbackPanel doesn't show
success messages, added by submit links in Panel1 or Panel2, hence
messages
Done, https://issues.apache.org/jira/browse/WICKET-5566
https://issues.apache.org/jira/browse/WICKET-5566
-
--
http://www.linkedin.com/in/amorozov
--
View this message in context:
75 matches
Mail list logo