DataTable adding one more div/span based on dynamic conditions

2014-08-17 Thread dharmendra pandey

Hi,

I am using the DataTable to render the data in tabular format and overridden
the populateItem method to insert the span in case of particular scenario as
mentioned below..

I have done the below way but think  can be done in better ways.. earlier I
have used the Fragment and was unable to add a div/span

Could you please suggest...

--
@Override
public void populateItem(ItemICellPopulatorlt;LabTestData item, String
componentId, IModelLabTestData rowModel) {

if (colourName.equals(getPropertyExpression())) {
item.add(new Label(componentId, nbsp;nbsp;nbsp; nbsp;
+
rowModel.getObject().getColourName()).setEscapeModelStrings(false));
   item.add(new AttributeModifier(title, new
ModelString(rowModel.getObject().getColourName(;

} else {
item.add(new Label(componentId, getDataModel(rowModel)));
}

}

---

 private class ColorPanelFragment extends Fragment {

private static final long serialVersionUID = 1L;

public ColorPanelFragment(String id, String markupId,
MarkupContainer markupProvider) {
super(id, markupId, markupProvider);
}
}
---


Regards
Dharmendra Pandey


--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/DataTable-adding-one-more-div-span-based-on-dynamic-conditions-tp4667064.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: broken Wicket build

2014-08-17 Thread Andrea Del Bene

Hi,

which branch are you working on (master, wicket-6.x...)? I've found a 
failing test on master for module wicket-examples 
(WordGeneratorTest.testWordGenerator). I'm working on it.

Hi,

When trying to build the latest Apache Wicket Git repository, I get this
error:

[ERROR] Failed to execute goal org.codehaus.mojo:clirr-maven-
plugin:2.6.1:check (clirr-check) on project wicket-util: Execution
clirr-check of goal org.codehaus.mojo:clirr-maven-plugin:2.6.1:check
failed: Invalid byte tag in constant pool: 15 - [Help 1]

It looks that there is an API break. I use Maven 3.2.1  3.1.1 and OpenJDK
1.6.32  1.7.55 as well as Oracle Java 8.11 on Debian Linux Wheezy.

Any help is appreciated.

Regards,

Pierre





-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: WiQuery: positioning a dialog when reusing it

2014-08-17 Thread Mihir Chhaya
Martin,

I have used WQuery Dialog for Wicket 1.4 and could make it work in center
using setMinimumHeight and setMinimumWidth methods when adding dialog. Have
you tried those? You could pass different values for height and width from
the source when creating to match your requirements.

For position, I have not tried though.

-Mihir.


On Fri, Aug 15, 2014 at 8:01 AM, Martin Dietze mdie...@gmail.com wrote:

 In my application I am using WiQuery's 'Dialog' for a global page
 dialog that gets constructed in my page base class. Each time I want
 to show a dialog I embed a different panel in it and then show it.

 Usually I would like to display smaller dialogs that fit on the screen
 using WindowPosition.CENTER while for larger (i.e. longer) dialogs
 WindowPosition.TOP would be more appropriate.

 Now I see that setting the window position on the already constructed
 Dialog object does not have any effect, the only way I can actually
 set the position is by setting the position after construction, i.e.
 before the dialog gets rendered for the first time. I actually found
 this by trial-and-error, and the (rather terse) WiQuery documentation
 does not give me much more of a hint.

 Thus asking you - is there a way to reposition a reused dialog? If
 yes, how? It seems so weird I did not find anything on this because
 this requirement seems fairly typical to me...

 Cheers,

 Martin

 --
 -- mdie...@gmail.com --/-- mar...@the-little-red-haired-girl.org
 
 - / http://herbert.the-little-red-haired-girl.org /
 -

 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org




Demonstrate End-to-End Security Enforcement using Open Source Software Wicket

2014-08-17 Thread Shawn McKinney
Posting another security tutorial featuring an Apache Wicket Web sample 
application.  This one provides end-to-end security coverage: 
http://iamfortress.org/FortressDemo2


-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org