kuali / kc Goto Github PK
View Code? Open in Web Editor NEWKuali Coeus
Home Page: http://www.kuali.org/kc
License: GNU Affero General Public License v3.0
Kuali Coeus
Home Page: http://www.kuali.org/kc
License: GNU Affero General Public License v3.0
The dateformat classe's throws checked exception from the lambda. Either wrap the lambda int the some wrapper api (third party available ) or use Old fashioned the way historically we have been using.
@OverRide
public List getKeyValues() {
final SimpleDateFormat sdf = new SimpleDateFormat("MM/dd/yyyy");
List KeyValues = new ArrayList();
KeyValues.add(new ConcreteKeyValue("", "select"));
for (SubAwardAmountInfo info : ((SubAwardDocument) getDocument()).getSubAward().getSubAwardAmountInfoList()) {
if (StringUtils.isNotEmpty(info.getModificationTypeCode()) && info.getModificationEffectiveDate() != null) {
if (info.getModificationType() == null) {
info.refreshReferenceObject("modificationType");
}
try {
KeyValues.add(new ConcreteKeyValue(info.getSubAwardAmountInfoId().toString(),
info.getModificationType().getDescription() + " - " + sdf.format(info.getEffectiveDate())));
} catch (Exception e) {
System.out.println(e.getMessage());
}
}
}
return KeyValues;
}
Looks like there was a typo in ProtocolGrantExemptionUnavailableAuthorizer-- the isAuthorized method should be checking if a protocol is not new, otherwise the Grant Exemption action shows up as both available and unavailable, which prevents both sub-tabs from being expanded. Line 31 should be:
return (!task.getProtocol().isNew() ||
This seemed like such a tiny fix that it wasn't worth a full Jira or PR, but just let me know if you'd prefer that small changes like this still follow the official process.
The Springframework version is probably out of date, as it produces 'wrong class format' exception while creating the beans...
Document Overview
Tab in Award module has a description field which is mandatory. But it allows user to save the document without causing validation errors
KC includes a JavaScript library Fancybox 2. It's license is not compatible with KC's AGPL license. This library should be removed.
In trying to build a dynamic tab group I've run into a problem with setting contextual information for rendering each tab. Currently I have the following as the component group
public class DynamicTabGroup extends TabGroup {
private String tabCollectionPropertyName;
private Group groupPrototype;
private Map<String, String> expressionProperties;
private String idSuffixPropertyName;
/**
* {@inheritDoc}
*/
@Override
public void performInitialization(Object model) {
List<Component> items = new ArrayList<Component>();
List<Object> modelCollection = ObjectPropertyUtils.getPropertyValue(model,
tabCollectionPropertyName);
for (Object tabObj : modelCollection) {
Group newGroup = ComponentUtils.copy(groupPrototype, "_" + ObjectPropertyUtils.getPropertyValueAsText(tabObj, idSuffixPropertyName));
for (Map.Entry<String, String> entry : expressionProperties.entrySet()) {
newGroup.getContext().put(entry.getKey(), ObjectPropertyUtils.getPropertyValueAsText(tabObj, entry.getValue()));
}
items.add(newGroup);
}
setItems(items);
super.performInitialization(model);
}
}
In this I am copying the prototype and setting ID suffixes and adding configured items into the group's context so the group can be dynamically rendered based on the part of the collection it is in. The associated XML for this is
<bean id="PropBudget-RatesPage-TabGroup-parentBean" abstract="true" parent="Uif-TabSection" class="org.kuali.coeus.org.kuali.rice.krad.uif.container.DynamicTabGroup"
p:tabCollectionPropertyName="budget.rateClassTypes" p:expressionProperties="rateClassType:code,rateClassDescription:description"
p:idSuffixPropertyName="code" p:header.headerText="Rates">
<property name="groupPrototype"><bean parent="PropBudget-RatesPage-RateTab"/></property>
So the DynamicTabGroup should create a new PropBudget-RatesPage-RateTab with a custom context containing rateClassType and rateClassDescription that matches the rate class it was rendered for.
Part of this seems to work. In the XML shown below you can see it using it to create the header text and the filter, which both work. But then it tries to use it in the table(demo purposes only) and for the header button additionalSubmitData but now it is now incorrect. All tabs render the last tabs description in the table, while each somehow have the correct header. Same with the button's submitData and the filtered rates.
<bean id="PropBudget-RatesPage-RateTab-parentBean"
abstract="true" parent="Uif-TableCollectionSection" p:headerText="@{#rateClassDescription}"
p:collectionObjectClass="org.kuali.coeus.common.budget.framework.rate.BudgetRate"
p:propertyName="budget.budgetRates">
<property name="filters">
<list>
<bean parent="Uif-ConditionalCollectionFilter" p:expression="@{#line.rateClassType == #rateClassType}"/>
</list>
</property>
<property name="header.rightGroup">
<bean parent="Uif-HeaderRightGroup">
<property name="items">
<list>
<bean parent="Uif-SecondaryActionButton-Mini"
p:actionLabel="Reset to Default Rates" p:methodToCall="resetRates"
p:additionalSubmitData="rateClassTypeCode:@{#rateClassType}"/>
</list>
</property>
<property name="items">
<list>
<bean parent="Uif-MessageField" p:messageText="@{#rateClassDescription}" p:order="5"/>
<bean parent="Uif-DataField" p:propertyName="rateClass.description" p:order="10"/>
<bean parent="Uif-DataField" p:propertyName="onOffCampusFlag" p:order="20"/>
<bean parent="Uif-DataField" p:propertyName="fiscalYear" p:order="30"/>
<bean parent="Uif-DataField" p:propertyName="startDate" p:order="40"/>
<bean parent="Uif-DataField" p:propertyName="instituteRate" p:order="50"/>
<bean parent="Uif-InputField" p:propertyName="applicableRate" p:order="60" p:readOnly="@{!#ViewHelper.isBudgetLineItemEditable(#collectionGroup.bindingInfo.bindingPath,#index,editableBudgetLineItems)}"/>
</list>
</property>
Any ideas?
The commit KRACOEUS-8762: License header updates added Kuali copyright/license headers to third-party libraries in coeus-webapp/src/main/webapp/scripts. These should be removed.
NegotiationActivityReport.xsl is broken 5.2x version works
This causes transformer to be null as xslt is fetched from jar resources. .Negotiation activities print causes nPE
FFAta functionality is half baked.
when you edit subaward the fffata entries are gone from the display only to come back once finalize
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.